Include info in panic
@@ -255,10 +255,10 @@ where
// We should never overwrite a file in the build directory with a
// native file being copied.
- assert!(
- !self.io.is_file(&destination),
- "copy_native_files file already exists"
- );
+ if self.io.is_file(&destination) {
+ panic!("Native file would overwrite {:?}", destination);
+ }
+
self.io.copy(&path, &destination)?;
self.add_build_journal(out.join(&relative_path));
