From ecdb1d706c57054cd390351e03853d9e45fe04d6 Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Fri, 8 Jan 2021 15:10:38 -0700 Subject: [PATCH] panic instead of abort --- src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 45bdf91..7ed1e42 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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. }