We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
monitors
NotFound
1 parent 427e74c commit 9c8a392Copy full SHA for 9c8a392
1 file changed
src/lib.rs
@@ -523,8 +523,12 @@ impl Builder {
523
) {
524
Ok(monitors) => monitors,
525
Err(e) => {
526
- log_error!(logger, "Failed to read channel monitors: {}", e.to_string());
527
- panic!("Failed to read channel monitors: {}", e.to_string());
+ if e.kind() == std::io::ErrorKind::NotFound {
+ Vec::new()
528
+ } else {
529
+ log_error!(logger, "Failed to read channel monitors: {}", e.to_string());
530
+ panic!("Failed to read channel monitors: {}", e.to_string());
531
+ }
532
}
533
};
534
0 commit comments