mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
refator: copy cli into mono
This commit is contained in:
parent
66ae3c296e
commit
80f6b87991
63 changed files with 244 additions and 34 deletions
16
crates/cli/src/error.rs
Normal file
16
crates/cli/src/error.rs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
pub type Result<T> = std::result::Result<T, Error>;
|
||||
|
||||
#[derive(thiserror::Error, Debug)]
|
||||
pub enum Error {
|
||||
#[error("IO Error: {0}")]
|
||||
Io(#[from] std::io::Error),
|
||||
|
||||
#[error("Clap Error: {0}")]
|
||||
Clap(#[from] clap::Error),
|
||||
|
||||
#[error("Gamedig Error: {0}")]
|
||||
Gamedig(#[from] gamedig::errors::GDError),
|
||||
|
||||
#[error("Strum Error: {0}")]
|
||||
Strum(#[from] strum::ParseError),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue