Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update driver.go #454

Merged
merged 3 commits into from
Oct 17, 2020
Merged

Update driver.go #454

merged 3 commits into from
Oct 17, 2020

Conversation

olicuzo
Copy link
Contributor

@olicuzo olicuzo commented Oct 8, 2020

I've stumbled upon the source driver: unknown driver file (forgotten import?) error which has been reported as an issue multiple times.

This is a tiny proposal that might make the error message more readable:
instead of source driver: unknown driver file (forgotten import?), the message can be source driver: unknown driver 'file' (forgotten import?) to indicate that 'file' is the type of the driver

@coveralls
Copy link

coveralls commented Oct 8, 2020

Pull Request Test Coverage Report for Build 897

  • 0 of 1 (0.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 55.639%

Changes Missing Coverage Covered Lines Changed/Added Lines %
source/driver.go 0 1 0.0%
Totals Coverage Status
Change from base Build 895: 0.0%
Covered Lines: 3044
Relevant Lines: 5471

💛 - Coveralls

Copy link
Member

@dhui dhui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

source/driver.go Outdated
@@ -87,7 +87,7 @@ func Open(url string) (Driver, error) {
d, ok := drivers[u.Scheme]
driversMu.RUnlock()
if !ok {
return nil, fmt.Errorf("source driver: unknown driver %v (forgotten import?)", u.Scheme)
return nil, fmt.Errorf("source driver: unknown driver '%v' (forgotten import?)", u.Scheme)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well make it '%s' while you're at it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Member

@dhui dhui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants