diff options
| author | Irene Knapp <ireneista@irenes.space> | 2026-11-25 03:05:16 -0700 |
|---|---|---|
| committer | Irene Knapp <ireneista@irenes.space> | 2026-11-25 03:05:16 -0700 |
| commit | 6ab1eb29d593af69aef18ddcfadd171c07aac2ed (patch) | |
| tree | 02af79ce326dff509b816c125bea9360d59fb43e /src/error.rs | |
| parent | f49645d0bef662c743e04cd95f9cf6a07566c738 (diff) | |
subscribing to i3 events fully works now
Force-Push: yes Change-Id: I3d77977e58a8493513afe481f31c923264b5339d
Diffstat (limited to 'src/error.rs')
| -rw-r--r-- | src/error.rs | 6 |
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)) |