Browse Source

error: add KeypairPathNotFound error

ghassmo 4 years ago
parent
commit
92350cfb6d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/error.rs

+ 2 - 0
src/error.rs

@@ -77,6 +77,7 @@ pub enum Error {
 
 
     /// Util
     /// Util
     ConfigNotFound,
     ConfigNotFound,
+    KeypairPathNotFound,
     SetLoggerError,
     SetLoggerError,
     AsyncChannelSenderError,
     AsyncChannelSenderError,
     AsyncChannelReceiverError,
     AsyncChannelReceiverError,
@@ -141,6 +142,7 @@ impl fmt::Display for Error {
             Error::ConfigNotFound => {
             Error::ConfigNotFound => {
                 f.write_str("No config file detected. Please create a config file")
                 f.write_str("No config file detected. Please create a config file")
             }
             }
+            Error::KeypairPathNotFound => f.write_str("No keypair file detected."),
             Error::SetLoggerError => f.write_str("SetLoggerError"),
             Error::SetLoggerError => f.write_str("SetLoggerError"),
             Error::TokenParseError => f.write_str("Could not parse token parameter"),
             Error::TokenParseError => f.write_str("Could not parse token parameter"),
             Error::TungsteniteError => f.write_str("TungsteniteError"),
             Error::TungsteniteError => f.write_str("TungsteniteError"),