panic instead of abort

This commit is contained in:
Aiden McClelland
2021-01-08 15:10:38 -07:00
parent 0165343c36
commit ecdb1d706c

View File

@@ -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.
}