Răsfoiți Sursa

fix(bundler): fix error message (#8642)

Olivier Lemasle 1 an în urmă
părinte
comite
4ca4148e64
1 a modificat fișierele cu 1 adăugiri și 3 ștergeri
  1. 1 3
      tooling/bundler/src/bundle/common.rs

+ 1 - 3
tooling/bundler/src/bundle/common.rs

@@ -103,9 +103,7 @@ pub fn copy_dir(from: &Path, to: &Path) -> crate::Result<()> {
     )));
   }
   if to.exists() {
-    return Err(crate::Error::GenericError(format!(
-      "{from:?} already exists"
-    )));
+    return Err(crate::Error::GenericError(format!("{to:?} already exists")));
   }
   let parent = to.parent().expect("No data in parent");
   fs::create_dir_all(parent)?;