-
Notifications
You must be signed in to change notification settings - Fork 212
Fix panic on ctry!
error
#858
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
- Don't try to serve template that doesn't exist - Add backtrace of error in logs
r? @Kixiron |
If at all possible I’d really like to get rid of the |
return $crate::web::page::Page::new(format!("{:?}", e)) | ||
.title("An error has occured") | ||
log::error!("{}\n{:?}", e, backtrace::Backtrace::new()); | ||
return $crate::web::page::Page::new(format!("{}", e)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure the user should get the raw error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see why not, usually it's something like 'File not found' which seems pretty harmless.
Pretty sure we can literally just replace |
Before
Website
Logs
After
Website
Logs
Note that we already have
backtrace
as a transitive dependency due tofailure
.Closes #817