summaryrefslogtreecommitdiffhomepage
path: root/talpid-core/src
diff options
context:
space:
mode:
Diffstat (limited to 'talpid-core/src')
-rw-r--r--talpid-core/src/mktemp.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/talpid-core/src/mktemp.rs b/talpid-core/src/mktemp.rs
index 69fa01f97f..7c0cc11b49 100644
--- a/talpid-core/src/mktemp.rs
+++ b/talpid-core/src/mktemp.rs
@@ -1,5 +1,6 @@
use std::env;
use std::path::{Path, PathBuf};
+use std::io;
use std::fs;
use uuid::Uuid;
@@ -31,7 +32,9 @@ impl AsRef<Path> for TempFile {
impl Drop for TempFile {
fn drop(&mut self) {
if let Err(e) = fs::remove_file(&self.path) {
- error!("Unable to remove TempFile {}: {:?}", self.path.to_string_lossy(), e);
+ if e.kind() != io::ErrorKind::NotFound {
+ error!("Unable to remove temp file {}: {:?}", self.path.to_string_lossy(), e);
+ }
}
}
}