-
Notifications
You must be signed in to change notification settings - Fork 623
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
🙏🏻[feat/req] Need more details in error messages for thrown errors #863
Comments
I don't think Deno has access to more information than you do. That NotFound error bubbles up from the operating system, Deno just passes it on to you. |
If this was caught and re-thrown, the value of |
I think it's standard to just carry forward the OS error where applicable, the user should do that. However in this case the "user" with access to that is std -- |
This adds the root path to error object. Fix denoland#863
This adds the root path to error message. Fix denoland#863
This adds the root path to error message. Fix denoland#863
This adds the root path to error message. Fix denoland#863
This adds the root path to error message. The `root` property is set to properly handle errors in case of recursion. Fix denoland#863
This adds the root path to error message. The `root` property is set to properly handle errors in case of recursion. Fix denoland#863
This adds the root path to error message. The `root` property is set to properly handle errors in case of recursion. Fix denoland#863
This adds the root path to error message. The `root` property is set to properly handle errors in case of recursion. Fix denoland#863
This adds the root path to error message. The `root` property is set to properly handle errors in case of recursion. Fix denoland#863
This adds the root path to error message. The `root` property is set to properly handle errors in case of recursion. Fix denoland#863
I just ran into this error while using
fs::walk()
...After some sleuthing, it turns out one of the sub-directories in the walk has disabled read permissions. But that's really impossible to determine from the information within the error object. Just adding the attempted path to the error would be have made debugging this significantly easier.
A lot of errors seem to be a blandly generic and, with an added bit more contextual information, could be of significantly more benefit to devs.
The text was updated successfully, but these errors were encountered: