10 lines
179 B
Rust
10 lines
179 B
Rust
use thiserror::Error;
|
|
|
|
#[derive(Debug, Error)]
|
|
pub enum AppError {
|
|
#[error("command failed: {0}")]
|
|
Command(String),
|
|
#[error("not found: {0}")]
|
|
NotFound(String),
|
|
}
|