scarb 0.5.2

The Cairo package manager
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use thiserror::Error;

#[derive(Debug, Error)]
#[error("script failed with exit code: {exit_code}")]
pub struct ScriptExecutionError {
    /// The process exit code.
    pub exit_code: i32,
}

impl ScriptExecutionError {
    pub fn new(exit_code: i32) -> Self {
        Self { exit_code }
    }
}