about summary refs log tree commit diff
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, 6 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index f7ef553..592e91b 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -71,6 +71,12 @@ impl<T> From<async_channel::SendError<T>> for Error {
   }
 }
 
+impl From<json_event_parser::JsonSyntaxError> for Error {
+  fn from(error: json_event_parser::JsonSyntaxError) -> Error {
+    Error(format!("JSON parsing: {}", error))
+  }
+}
+
 impl From<rustix::io::Errno> for Error {
   fn from(error: rustix::io::Errno) -> Error {
     Error(format!("Unix system-call: {}", error))