diff options
Diffstat (limited to 'tests/common')
| -rw-r--r-- | tests/common/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 4884a19..1399179 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -430,7 +430,9 @@ fn copy_tree(from: &Path, to: &Path) { if entry.file_type().unwrap().is_dir() { copy_tree(&path, &target); } else { - std::fs::copy(&path, &target).unwrap(); + std::fs::copy(&path, &target).unwrap_or_else(|e| { + panic!("copying {} to {}: {e}", path.display(), target.display()) + }); } } } |
