summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-12-14 16:21:43 -0500
committerGitHub <noreply@github.com>2022-12-14 16:21:43 -0500
commit9f82abb4b4c5403ffeb9d3eabede57f9b544d930 (patch)
treedada0bc439b01aa4aa0d87980f4e7464823b3588
parentddd3506e69d490678967c153a9700e09554c9014 (diff)
fix(upgrade/windows): correct command in windows access denied message (#17049)
-rw-r--r--cli/tools/upgrade.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/cli/tools/upgrade.rs b/cli/tools/upgrade.rs
index 4b745b573..a9b60413b 100644
--- a/cli/tools/upgrade.rs
+++ b/cli/tools/upgrade.rs
@@ -379,13 +379,14 @@ pub async fn upgrade(
return Err(err).with_context(|| {
format!(
concat!(
- "Access denied: Could not replace the deno executable. This may be ",
- "because an existing deno process is running. Please ensure there ",
- "are no running deno processes (ex. Stop-Process -Name deno ; deno {}), ",
- "close any editors before upgrading, and ensure you have sufficient ",
- "permission to '{}'."
+ "Could not replace the deno executable. This may be because an ",
+ "existing deno process is running. Please ensure there are no ",
+ "running deno processes (ex. Stop-Process -Name deno ; deno {}), ",
+ "close any editors before upgrading, and ensure you have ",
+ "sufficient permission to '{}'."
),
- std::env::args().collect::<Vec<_>>().join(" "),
+ // skip the first argument, which is the executable path
+ std::env::args().skip(1).collect::<Vec<_>>().join(" "),
output_exe_path.display(),
)
});