1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
//! Error type returned by the devlog library. use std::io::Error as IOError; #[derive(Debug)] pub enum Error { /// An invalid argument was passed to the command-line app InvalidArg(&'static str), /// The repository contains the maximum number of log file entries, /// so no more can be created. LogFileLimitExceeded, /// Wraps `io::Error` IOError(IOError), } impl From<IOError> for Error { fn from(err: IOError) -> Error { Error::IOError(err) } }