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.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index d6bde2f..b3bb460 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -42,6 +42,13 @@ impl<T> From<async_channel::SendError<T>> for Error {
   }
 }
 
+impl From<rustix::io::Errno> for Error {
+  fn from(error: rustix::io::Errno) -> Error {
+    Error(format!("Unix system-call error: {}", error))
+  }
+}
+
+
 impl From<xcb::Error> for Error {
   fn from(error: xcb::Error) -> Error {
     match error {