disable TemporaryPath panic

This commit is contained in:
keorn 2016-09-19 10:41:35 +02:00
parent c6c45db1d0
commit 6af888f9e4
2 changed files with 2 additions and 1 deletions

1
Cargo.lock generated
View File

@ -605,6 +605,7 @@ dependencies = [
"clippy 0.0.85 (registry+https://github.com/rust-lang/crates.io-index)",
"env_logger 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"ethcore 1.4.0",
"ethcore-devtools 1.4.0",
"ethcore-io 1.4.0",
"ethcore-ipc 1.4.0",
"ethcore-ipc-codegen 1.4.0",

View File

@ -77,7 +77,7 @@ impl Drop for RandomTempPath {
fn drop(&mut self) {
if let Err(_) = fs::remove_dir_all(&self) {
if let Err(e) = fs::remove_file(&self) {
panic!("Failed to remove temp directory. Here's what prevented this from happening: ({})", e);
println!("Failed to remove temp directory. Here's what prevented this from happening: ({})", e);
}
}
}