-
-
Notifications
You must be signed in to change notification settings - Fork 540
Improve error messages used by esm-resolver #1373
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
Conversation
Codecov Report
|
Do those other error types always receive string arguments? In other words, is there a chance we'll end up putting |
I left those other error types original behavior as it is. So actually, I haven't checked that far. Well, I'll check it out anyway. 👍 |
Oh, they are unchanged. My mistake, I forgot that they already behaved that way. |
@tars0x9752 this looks good to me. I see we have a gap in our test coverage here. Did you test informally, and did the error message look correct when ts-node threw it? Since we do not already have an automated test for this, I don't think you need to add one. Otherwise this looks good to merge. |
Thanks. :) I did the test and here's what it looks like. (And that's what I expected.)
|
BTW, I did a quick search and came up with the following. (not 100% sure but It'll help some) And I found some cases to receive some none-string values. so I'll leave it here for future reference.
|
Excellent, thank you. I'll get this merged soon and we'll give you a shout-out in the release notes. |
Implements #1357 EDIT Closes #1357 (github needs this syntax to link the issues)
Make stub implementation of
ERR_MODULE_NOT_FOUND
message a little nicer.