Add `Debug` to derive list in MessageSendEvent
[rust-lightning] / lightning / src / util / errors.rs
index a5403ef56468e64eaefa95cc261aa6fdfbb04d23..f67621c828ca521f4739d99ec5a54760310cb1a8 100644 (file)
@@ -13,6 +13,7 @@ use std::fmt;
 
 /// Indicates an error on the client's part (usually some variant of attempting to use too-low or
 /// too-high values)
+#[derive(Clone)]
 pub enum APIError {
        /// Indicates the API was wholly misused (see err for more). Cases where these can be returned
        /// are documented, but generally indicates some precondition of a function was violated.
@@ -42,7 +43,7 @@ pub enum APIError {
                /// A human-readable error message
                err: String
        },
-       /// An attempt to call add/update_monitor returned an Err (ie you did this!), causing the
+       /// An attempt to call watch/update_channel returned an Err (ie you did this!), causing the
        /// attempted action to fail.
        MonitorUpdateFailed,
 }