fey 0.0.2

fey is a fast and reliable username scanner
Documentation
pub enum Error{
    /// a general error that can be used for most things
    Error(String),

    /// an error related to all file things
    FileError(String),

    /// an error related to all config things
    ConfigError(String),

    /// a fatal error, if this is encountered the program should exit
    FatalError(String),
}

impl Error{
    /// evaluates what error is returned and starts the correct procedure for each error 
    pub fn eval(error: Error){
        match error{
            Error::Error(errormsg) => eprintln!("Error: {}", errormsg),
            Error::FileError(errormsg) => eprintln!("Error: filesystem:  {}", errormsg),
            Error::ConfigError(errormsg) => eprintln!("Error: config: {}", errormsg),
            Error::FatalError(errormsg) => eprintln!("Fatal: {}", errormsg),
        }
    }
}