Drop `MonitorUpdateErr` in favor of opaque errors.
[rust-lightning] / lightning / src / chain / chainmonitor.rs
index 3c8f9bb561b2456c7c3822f123efdd0f6539b67f..4ff3bba11a7e10b2e2f00b24a59ba5d4eb82ec06 100644 (file)
@@ -639,8 +639,8 @@ where C::Target: chain::Filter,
                                let monitor = &monitor_state.monitor;
                                log_trace!(self.logger, "Updating ChannelMonitor for channel {}", log_funding_info!(monitor));
                                let update_res = monitor.update_monitor(&update, &self.broadcaster, &self.fee_estimator, &self.logger);
-                               if let Err(e) = &update_res {
-                                       log_error!(self.logger, "Failed to update ChannelMonitor for channel {}: {:?}", log_funding_info!(monitor), e);
+                               if update_res.is_err() {
+                                       log_error!(self.logger, "Failed to update ChannelMonitor for channel {}.", log_funding_info!(monitor));
                                }
                                // Even if updating the monitor returns an error, the monitor's state will
                                // still be changed. So, persist the updated monitor despite the error.