From 4ca4148e64a16d8205b611ca27536e730eccf9e1 Mon Sep 17 00:00:00 2001 From: Olivier Lemasle Date: Fri, 19 Jan 2024 21:14:46 +0100 Subject: [PATCH] fix(bundler): fix error message (#8642) --- tooling/bundler/src/bundle/common.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tooling/bundler/src/bundle/common.rs b/tooling/bundler/src/bundle/common.rs index 2332fc49a..df430466d 100644 --- a/tooling/bundler/src/bundle/common.rs +++ b/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)?;