-
Notifications
You must be signed in to change notification settings - Fork 38
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
Better error message when changing to a directory that doesn't exist #109
Comments
Pure speculation: the panic doesn't happen in Using the new Not sure what there is that we could do at this point. Any ideas? |
It looks like the panic comes from here: Line 60 in b4d4beb
I think if you removed the unwrap() and returned an error instead it would be more helpful, or if you want to avoid changing the API you could panic with 'failed to run the command' or something like that.
|
The caller is wanting to However, you are right that we should have a custom |
Users had to infer the reason for the panic based on the location. Instead, we should tell them what failed so they can more quickly get up and going on fixing it. Fixes assert-rs#109
Users had to infer the reason for the panic based on the location. Instead, we should tell them what failed so they can more quickly get up and going on fixing it. Fixes assert-rs#109
1.0.2 should now be released with a proper panic message |
Currently, the error looks like this:
The actual issue is that I tried to change to a directory that doesn't exist:
This is made worse by the backtrace, which points to the wrong line:
The text was updated successfully, but these errors were encountered: