updated clap output
Some checks failed
Version Check / check-version (pull_request) Failing after 3s
Some checks failed
Version Check / check-version (pull_request) Failing after 3s
This commit is contained in:
18
src/error.rs
Normal file
18
src/error.rs
Normal file
@@ -0,0 +1,18 @@
|
||||
use thiserror::Error;
|
||||
use std::io;
|
||||
|
||||
/// Custom error types for the mould application.
|
||||
#[derive(Error, Debug)]
|
||||
pub enum MouldError {
|
||||
#[error("IO error: {0}")]
|
||||
Io(#[from] io::Error),
|
||||
|
||||
#[error("Format error: {0}")]
|
||||
Format(String),
|
||||
|
||||
#[error("File not found: {0}")]
|
||||
FileNotFound(String),
|
||||
|
||||
#[error("Terminal error: {0}")]
|
||||
Terminal(String),
|
||||
}
|
||||
Reference in New Issue
Block a user