diff options
author | Irene Knapp <ireneista@gmail.com> | 2021-12-15 22:33:31 -0800 |
---|---|---|
committer | Irene Knapp <ireneista@gmail.com> | 2021-12-15 22:33:31 -0800 |
commit | 268e1a82fa61531edaaec472dbd5cd7df044176d (patch) | |
tree | 096c552ca2b5973350c12783ec8fba1f6e54f444 /lib | |
parent | ea68d068cfa85d3e5ca5efe44bf470554a2c4006 (diff) |
16, yay
Diffstat (limited to 'lib')
-rw-r--r-- | lib/src/error.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/src/error.rs b/lib/src/error.rs index 4f594b7..ccf01ee 100644 --- a/lib/src/error.rs +++ b/lib/src/error.rs @@ -2,6 +2,7 @@ pub enum Error { IO(std::io::Error), Parse, + Unspecified, } impl std::error::Error for Error { } @@ -11,6 +12,7 @@ impl std::fmt::Display for Error { match self { Error::IO(e) => e.fmt(f), Error::Parse => f.write_str("Parse error"), + Error::Unspecified => f.write_str("Unspecified error (bad luck!)"), } } } |