Przeglądaj źródła

error: add CashierKeysNotFound error

ghassmo 4 lat temu
rodzic
commit
581dfd89de
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      src/error.rs

+ 2 - 0
src/error.rs

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