From 2e77359c2f1cab769e34cde5c0dfb90a2d52b00b Mon Sep 17 00:00:00 2001 From: Stanisław Zagórowski Date: Fri, 19 Jan 2024 21:56:26 +0100 Subject: feature: add method and body to route params --- src/error.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/error.rs') 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"), } } } -- cgit v1.3.1