Skip to content
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

Merged
merged 4 commits into from
Mar 8, 2020
Merged

Error handling #24

merged 4 commits into from
Mar 8, 2020

Conversation

spk
Copy link
Collaborator

@spk spk commented Mar 1, 2020

Hi this add initial error management let me know what you think, cheers

@spk spk force-pushed the tests-expect branch 2 times, most recently from 271052a to f7314be Compare March 1, 2020 19:16
@messense
Copy link
Owner

messense commented Mar 7, 2020

Rebase needed.

use std::fmt;

#[derive(Debug)]
pub struct RobotparserError {
Copy link
Owner

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

Copy link
Collaborator Author

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 ?

Copy link
Owner

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

Copy link
Collaborator Author

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

src/model/errors.rs Outdated Show resolved Hide resolved
@spk spk changed the title Tests expect Error handling Mar 8, 2020
@messense messense merged commit df49f6b into master Mar 8, 2020
@messense messense deleted the tests-expect branch March 8, 2020 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants