Skip to content

Improve error handling #11

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 6 commits into from
Jun 4, 2023
Merged

Conversation

nozwock
Copy link
Contributor

@nozwock nozwock commented Jun 4, 2023

In this PR, I have focused solely on making changes related to error handling.

We are utilizing eyre instead of anyhow here because eyre automatically provides line and column information for errors. I haven't explored whether there is an effortless way to achieve the same with anyhow yet.

@nozwock
Copy link
Contributor Author

nozwock commented Jun 4, 2023

Let me know anything I might've missed and take your time to review.

@nozwock
Copy link
Contributor Author

nozwock commented Jun 4, 2023

Also, I think I removed context to some of the errors, they can be added back with .wrap_err if they feel relevant to you.

@dvishal485
Copy link
Owner

dvishal485 commented Jun 4, 2023

Yeah, sure! Most errors handled manually were something for which the default error message generated should be enough!
The relevant errors were those which dealt with cookie renewal and user's submissions, and as I can review, you already handled them with wrap_err.

I appreciate your contribution to this repository and for taking out time for the same.

@dvishal485 dvishal485 merged commit a98b2bc into dvishal485:main Jun 4, 2023
@nozwock nozwock deleted the error-handling branch June 4, 2023 18:21
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants