about summary refs log tree commit diff
path: root/users/tazjin/rlox/src/errors.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-12-19T12·13+0100
committertazjin <mail@tazj.in>2020-12-20T16·25+0000
commit5ebe28cca271e2ca38faa2429cdc9bcb05c44c42 (patch)
tree488844874d3a3b4fae8020828a11ce1c0beaffb1 /users/tazjin/rlox/src/errors.rs
parentbc6775c318206e1bda5e40b5a2e2411f910ad336 (diff)
feat(tazjin/rlox): Add runtime type error handling r/2019
Change-Id: I0d52bc9ff5be6421cb4131265ed28ce1ea7d8ff3
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2282
Reviewed-by: tazjin <mail@tazj.in>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/tazjin/rlox/src/errors.rs')
-rw-r--r--users/tazjin/rlox/src/errors.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/users/tazjin/rlox/src/errors.rs b/users/tazjin/rlox/src/errors.rs
index 9ea303829e7e..ae7e0515a025 100644
--- a/users/tazjin/rlox/src/errors.rs
+++ b/users/tazjin/rlox/src/errors.rs
@@ -4,6 +4,7 @@ pub enum ErrorKind {
     UnterminatedString,
     UnmatchedParens,
     ExpectedExpression(String),
+    TypeError(String),
 }
 
 #[derive(Debug)]