diff options
| author | Stanisław Zagórowski <hasohasacz@gmail.com> | 2024-01-19 21:56:26 +0100 |
|---|---|---|
| committer | Stanisław Zagórowski <hasohasacz@gmail.com> | 2024-01-19 21:56:26 +0100 |
| commit | 2e77359c2f1cab769e34cde5c0dfb90a2d52b00b (patch) | |
| tree | f9ef34db90e1247a20eadb91364d1a57de124281 /src/error.rs | |
| parent | 0e5bb91658dc4a81213c986442ce1662ba4d0ffc (diff) | |
feature: add method and body to route params
Diffstat (limited to 'src/error.rs')
| -rw-r--r-- | src/error.rs | 2 |
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"), } } } |
