summaryrefslogtreecommitdiffstats
path: root/src/tmux
diff options
context:
space:
mode:
Diffstat (limited to 'src/tmux')
-rw-r--r--src/tmux/error.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tmux/error.rs b/src/tmux/error.rs
new file mode 100644
index 0000000..6da5830
--- /dev/null
+++ b/src/tmux/error.rs
@@ -0,0 +1,11 @@
+#[derive(Debug, thiserror::Error)]
+pub enum Error {
+ #[error("IO error: {0}")]
+ IO(#[from] std::io::Error),
+
+ #[error(transparent)]
+ Format(#[from] ron::error::SpannedError),
+
+ #[error("Parsing error: {0}")]
+ Parse(#[from] std::str::Utf8Error),
+}