diff options
| author | Aleksey Kladov <aleksey.kladov@gmail.com> | 2022-01-01 17:43:02 +0300 |
|---|---|---|
| committer | Aleksey Kladov <aleksey.kladov@gmail.com> | 2022-01-01 18:55:53 +0300 |
| commit | 0d1e23e9688f6a40efa7868b6cec8d6b3c648427 (patch) | |
| tree | 44d905eec15292bf6443236aeb16abdb6227ea5c | |
| parent | b9417f348398894f974c787e6029a1272149f245 (diff) | |
| download | rust-0d1e23e9688f6a40efa7868b6cec8d6b3c648427.tar.gz rust-0d1e23e9688f6a40efa7868b6cec8d6b3c648427.zip | |
better error message
| -rw-r--r-- | crates/rust-analyzer/tests/slow-tests/testdir.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/rust-analyzer/tests/slow-tests/testdir.rs b/crates/rust-analyzer/tests/slow-tests/testdir.rs index c7e5c218064..3bec23a9117 100644 --- a/crates/rust-analyzer/tests/slow-tests/testdir.rs +++ b/crates/rust-analyzer/tests/slow-tests/testdir.rs @@ -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) + }) } } |
