aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fileutil.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fileutil.rs b/src/fileutil.rs
index b138955..2c322c4 100644
--- a/src/fileutil.rs
+++ b/src/fileutil.rs
@@ -18,7 +18,9 @@ impl Drop for Temp {
if self.path.as_os_str().is_empty() {
return;
}
- fs::remove_file(&self.path).expect("failed to clean up temporary file");
+ if let Err(err) = fs::remove_file(&self.path) {
+ eprintln!("<3>Failed to clean up temporary file: {}", err);
+ }
}
}