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 { if let Err(e) = sync_to_disk(&mut *self.file, &patch_bin).await {
eprintln!("I/O Error: {}", e); eprintln!("I/O Error: {}", e);
eprintln!("Failed to sync data to disk after successfully applying changes in memory. Aborting..."); panic!("Failed to sync data to disk after successfully applying changes in memory.");
std::process::abort();
// TODO: try to recover. // TODO: try to recover.
} }