1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{
    fit::InsufficientWidthError,
};

/// Termimad error type
///
#[derive(thiserror::Error, Debug)]
pub enum Error {

    #[error("IO error: {0}")]
    IO(#[from] std::io::Error),

    #[error("InsufficientWidth: {0}")]
    InsufficientWidth(#[from] InsufficientWidthError),
}

pub(crate) type Result<T> = std::result::Result<T, Error>;