diff --git a/tests/rojo_test/io_util.rs b/tests/rojo_test/io_util.rs index b060be65..4c33706b 100644 --- a/tests/rojo_test/io_util.rs +++ b/tests/rojo_test/io_util.rs @@ -34,7 +34,7 @@ pub fn copy_recursive(from: &Path, to: &Path) -> io::Result<()> { Ok(_) => {} Err(err) => match err.kind() { io::ErrorKind::AlreadyExists => {} - _ => panic!(err), + _ => return Err(err), }, } } else {