commot/errors/
mod.rs

1use std::io::Error;
2
3
4#[derive(thiserror::Error, Debug)]
5
6/// Simple errors, like FileError which is converted from `[std::io::Error]`
7/// ArgNotFound error is given when you run the `commot` command without giving the file or when the required arg is not 
8/// provided by the user.
9pub enum CommotError {
10    #[error("Something went wrong with the file.")]
11    FileError(#[from] Error),
12    #[error("{0}")]
13    ArgNotFound(String)
14}