diff options
author | Akshay <[email protected]> | 2021-03-28 05:21:26 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2021-03-28 05:21:26 +0100 |
commit | bbfca639547fcd08e51181b70e449e71281d1d9b (patch) | |
tree | e4f420286daf694624a7d7df33b2c517cd231143 /src/lisp/error.rs | |
parent | d0d222c3f7e765437f2fdfa5754654a8a815f52e (diff) |
add new brush type
Diffstat (limited to 'src/lisp/error.rs')
-rw-r--r-- | src/lisp/error.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lisp/error.rs b/src/lisp/error.rs index b90e211..a360eb2 100644 --- a/src/lisp/error.rs +++ b/src/lisp/error.rs | |||
@@ -90,6 +90,7 @@ pub enum EvalError { | |||
90 | DivByZero, | 90 | DivByZero, |
91 | TypeMismatch, | 91 | TypeMismatch, |
92 | NoFileName, | 92 | NoFileName, |
93 | CustomInternal(&'static str), | ||
93 | } | 94 | } |
94 | 95 | ||
95 | impl fmt::Display for EvalError { | 96 | impl fmt::Display for EvalError { |
@@ -112,6 +113,7 @@ impl fmt::Display for EvalError { | |||
112 | Self::TypeMismatch => write!(f, "mismatched types"), | 113 | Self::TypeMismatch => write!(f, "mismatched types"), |
113 | Self::DivByZero => write!(f, "attempt to divide by zero"), | 114 | Self::DivByZero => write!(f, "attempt to divide by zero"), |
114 | Self::NoFileName => write!(f, "no file name specified"), | 115 | Self::NoFileName => write!(f, "no file name specified"), |
116 | Self::CustomInternal(s) => write!(f, "{}", s), | ||
115 | } | 117 | } |
116 | } | 118 | } |
117 | } | 119 | } |