aboutsummaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index 3c8b756..fabe012 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -9,6 +9,7 @@ pub enum LuaXError {
ExpectedVar,
ExpectedExpression,
UnterminatedStringLiteral,
+ NonJsonType,
}
impl std::error::Error for LuaXError {}
@@ -23,6 +24,7 @@ impl Display for LuaXError {
LuaXError::ExpectedVar => write!(f, "Expected variable"),
LuaXError::ExpectedExpression => write!(f, "Expected expression"),
LuaXError::UnterminatedStringLiteral => write!(f, "Unterminated string literal"),
+ LuaXError::NonJsonType => write!(f, "Type cannot be represented in JSON"),
}
}
}