Skip to content

Commit

Permalink
Merge pull request #34 from zksecurity/improve-error
Browse files Browse the repository at this point in the history
Use `#[error(transparent)]` for more expressive errors
  • Loading branch information
mellowcroc authored Jan 7, 2025
2 parents 3026f73 + 2436533 commit 8393fb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bootloader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ pub struct CairoBootloaderRunResult {

#[derive(Debug, Error)]
pub enum Error {
#[error("Failed to interact with the file system")]
#[error(transparent)]
IO(#[from] std::io::Error),
#[error("Failed to parse program input")]
#[error(transparent)]
SerdeJson(#[from] serde_json::Error),
#[error("The cairo program execution failed")]
#[error(transparent)]
Runner(#[from] CairoRunError),
#[error(transparent)]
EncodeTrace(#[from] EncodeTraceError),
Expand Down

0 comments on commit 8393fb0

Please sign in to comment.