about summary refs log blame commit diff
path: root/tvix/eval/src/errors.rs
blob: 3df51acb6ca643d3eae5100c780214bfb98f7b90 (plain) (tree)
1
2
3
4
5
6
7
8
9


                      





                               







                                                                        
use std::fmt::Display;

#[derive(Debug)]
pub enum Error {
    TypeError {
        expected: &'static str,
        actual: &'static str,
    },
}

impl Display for Error {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        writeln!(f, "error")
    }
}

pub type EvalResult<T> = Result<T, Error>;