diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-07-15 02:17:57 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-07-15 02:17:57 -0400 |
commit | 3d54d1f4cb7274280f4e01e101137e91f336bc5c (patch) | |
tree | 896ecd9b9bd8696c9818c0779cd1d35876adec84 /src/error.rs | |
parent | 489a8198828be02c92da0c771ae0864915b08e7f (diff) | |
download | pty-process-3d54d1f4cb7274280f4e01e101137e91f336bc5c.tar.gz pty-process-3d54d1f4cb7274280f4e01e101137e91f336bc5c.zip |
start of an implementation
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs new file mode 100644 index 0000000..5b836de --- /dev/null +++ b/src/error.rs @@ -0,0 +1,10 @@ +#[derive(thiserror::Error, Debug)] +pub enum Error { + #[error("error creating pty")] + CreatePtyMaster(#[from] nix::Error), + + #[error("error creating pty")] + CreatePtySlave(#[from] std::io::Error), +} + +pub type Result<T> = std::result::Result<T, Error>; |