better error message

This commit is contained in:
Aleksey Kladov 2022-01-01 17:43:02 +03:00
parent b9417f3483
commit 0d1e23e968

View File

@ -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)
})
}
}