diff --git a/src/error.rs b/src/error.rs index 535bd7b..d4a2004 100644 --- a/src/error.rs +++ b/src/error.rs @@ -2,12 +2,14 @@ #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)] pub enum Error { InvalidFen, + InvalidPosition, } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { let error_msg = match self { Self::InvalidFen => "Invalid FEN input", + Self::InvalidPosition => "Invalid position", }; write!(f, "{}", error_msg) }