Skip to content

Commit 7adc624

Browse files
authored
Merge pull request #4192 from TheBlueMatt/2025-10-mon-err-print
Include monitor name in error when failing to load a monitor
2 parents c8b90d5 + a4f4663 commit 7adc624

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lightning/src/util/persist.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,9 +955,12 @@ where
955955
Some(res) => Ok(res),
956956
None => Err(io::Error::new(
957957
io::ErrorKind::InvalidData,
958-
"ChannelMonitor was stale, with no updates since LDK 0.0.118. \
958+
format!(
959+
"ChannelMonitor {} was stale, with no updates since LDK 0.0.118. \
959960
It cannot be read by modern versions of LDK, though also does not contain any funds left to sweep. \
960961
You should manually delete it instead",
962+
monitor_key,
963+
),
961964
)),
962965
}
963966
}

0 commit comments

Comments
 (0)