Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

[TASK] Remove anyhow and start using thiserror #65

Open
salman01zp opened this issue Sep 13, 2023 · 0 comments
Open

[TASK] Remove anyhow and start using thiserror #65

salman01zp opened this issue Sep 13, 2023 · 0 comments
Assignees

Comments

@salman01zp
Copy link
Contributor

Overview

following are some pros for using thiserror instead of anyhow in light-client crate.

  • We can define our own error type for the application LightClientError enum
  • Easy to review and fix types
  • convinient to use ? operator to unpack results
  • reduces code.

Resources

https://github.com/dtolnay/thiserror#comparison-to-anyhow
https://www.shakacode.com/blog/thiserror-anyhow-or-how-i-handle-errors-in-rust-apps/

@salman01zp salman01zp self-assigned this Sep 18, 2023
@github-project-automation github-project-automation bot moved this to Not Started 🕧 in Webb Universe Sep 18, 2023
@salman01zp salman01zp moved this from Not Started 🕧 to Planning 🗺️ in Webb Universe Sep 18, 2023
@salman01zp salman01zp moved this from Planning 🗺️ to Building 🏗️ in Webb Universe Sep 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Building 🏗️
Development

No branches or pull requests

1 participant