aboutsummaryrefslogtreecommitdiff
path: root/src/lisp/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lisp/error.rs')
-rw-r--r--src/lisp/error.rs2
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
95impl fmt::Display for EvalError { 96impl 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}