Merge pull request #1081 from poppingtonic/fix-drop-impl-error-message
Update error message
This commit is contained in:
commit
effa2cf96d
@ -59,7 +59,7 @@ impl RandomTempPath {
|
|||||||
impl Drop for RandomTempPath {
|
impl Drop for RandomTempPath {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
if let Err(e) = fs::remove_dir_all(self.as_path()) {
|
if let Err(e) = fs::remove_dir_all(self.as_path()) {
|
||||||
panic!("failed to remove temp directory, probably something failed to destroyed ({})", e);
|
panic!("Failed to remove temp directory. Here's what prevented this from happening: ({})", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user