about summary refs log tree commit diff
path: root/tvix/eval/src/errors.rs
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>;