mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-26 10:21:53 +00:00
panic instead of abort
This commit is contained in:
@@ -146,8 +146,7 @@ impl Store {
|
||||
}
|
||||
if let Err(e) = sync_to_disk(&mut *self.file, &patch_bin).await {
|
||||
eprintln!("I/O Error: {}", e);
|
||||
eprintln!("Failed to sync data to disk after successfully applying changes in memory. Aborting...");
|
||||
std::process::abort();
|
||||
panic!("Failed to sync data to disk after successfully applying changes in memory.");
|
||||
// TODO: try to recover.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user