aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/error.rs b/src/error.rs
index abf8810..979ca07 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -6,7 +6,7 @@ use crate::tokenizer::Token;
#[derive(Debug, Clone)]
pub enum ErrorKind {
TypeError(Op, Vec<Value>),
- AssertFailed(Value, Value),
+ Assert,
InvalidProgram,
Unreachable,
@@ -30,8 +30,8 @@ impl fmt::Display for ErrorKind {
.fold(String::new(), |a, v| { format!("{}, {:?}", a, v) });
write!(f, "Cannot apply {:?} to values {}", op, values)
}
- ErrorKind::AssertFailed(a, b) => {
- write!(f, "Assertion failed, {:?} != {:?}.", a, b)
+ ErrorKind::Assert => {
+ write!(f, "Assertion failed.")
}
ErrorKind::SyntaxError(line, token) => {
write!(f, "Syntax error on line {} at token {:?}", line, token)