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

Return better message on missing file with spaces #1973

Merged
merged 1 commit into from
Jun 16, 2021
Merged

Conversation

mstoykov
Copy link
Contributor

fixes #1972

@mstoykov mstoykov requested review from imiric and na-- April 16, 2021 12:07
@@ -67,6 +67,11 @@ func ReadSource(
pwdURL := &url.URL{Scheme: "file", Path: filepath.ToSlash(filepath.Clean(pwd)) + "/"}
srcURL, err := Resolve(pwdURL, filepath.ToSlash(src))
if err != nil {
var noSchemeError noSchemeRemoteModuleResolutionError
if errors.As(err, &noSchemeError) {
// TODO maybe try to wrap the original error here as well, without butchering the message
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I copied this from the other place this is made, below, but looking at it ... I think it is done?

@na-- na-- added this to the v0.33.0 milestone Apr 19, 2021
Copy link
Member

@na-- na-- left a comment

Choose a reason for hiding this comment

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

LGTM, this seems to have slipped through the cracks as well 😞

@mstoykov mstoykov merged commit 9b8a963 into master Jun 16, 2021
@mstoykov mstoykov deleted the fix/1972 branch June 16, 2021 08:19
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.

inconsistent error message for file names with/without spaces
3 participants