We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
debug_assert
1 parent 97d28e4 commit 58ab00bCopy full SHA for 58ab00b
lightning-persister/src/fs_store.rs
@@ -226,7 +226,11 @@ impl KVStore for FilesystemStore {
226
}
227
228
if dest_file_path.is_file() {
229
- return Err(std::io::Error::new(std::io::ErrorKind::Other, "Removing key failed"));
+ debug_assert!(false, "Failed to remove {}/{}: file is still present.",
230
+ PrintableString(namespace), PrintableString(key));
231
+ let msg = format!("Failed to remove {}/{}: file is still present.",
232
233
+ return Err(std::io::Error::new(std::io::ErrorKind::Other, msg));
234
235
236
0 commit comments