aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-10-27 07:54:26 -0400
committerJesse Luehrs <doy@tozt.net>2019-10-27 07:55:25 -0400
commit9739318498f8b78788923986d77a7b436d6af12a (patch)
treeb7ecb7d46684fc00f6dd99f4aff922a6b3286b88 /src/error.rs
parente7cf81e813dd5ee0ba5af9d5ad4354351da95b2d (diff)
downloadttyrec-9739318498f8b78788923986d77a7b436d6af12a.tar.gz
ttyrec-9739318498f8b78788923986d77a7b436d6af12a.zip
make the poll_write api a bit more consistent
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index 923ad4f..aa315e6 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -1,6 +1,9 @@
#[derive(Debug, snafu::Snafu)]
#[snafu(visibility(pub))]
pub enum Error {
+ #[snafu(display("eof"))]
+ EOF,
+
#[snafu(display("failed to create ttyrec frame: got {} bytes of data, but ttyrec frames can be at most {} bytes", input, u32::max_value()))]
FrameTooBig { input: usize },