mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
better error message
This commit is contained in:
parent
b9417f3483
commit
0d1e23e968
@ -52,7 +52,9 @@ impl Drop for TestDir {
|
||||
if self.keep {
|
||||
return;
|
||||
}
|
||||
remove_dir_all(&self.path).unwrap()
|
||||
remove_dir_all(&self.path).unwrap_or_else(|err| {
|
||||
panic!("failed to remove temporary directory {}: {}", self.path.display(), err)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user