-
Notifications
You must be signed in to change notification settings - Fork 8
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
Error handling #24
Error handling #24
Conversation
271052a
to
f7314be
Compare
Rebase needed. |
src/model/errors.rs
Outdated
use std::fmt; | ||
|
||
#[derive(Debug)] | ||
pub struct RobotparserError { |
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'd call it Error
, and it needs to implement std::error::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've implemented first but I saw that the Error description is deprecated cf rust-lang/rust#66919 do you think we should still implement it ?
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 think you can just add a blank impl for it
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.
Ok thanks its done in b2525b5
Hi this add initial error management let me know what you think, cheers