diff --git a/cli/tools/upgrade.rs b/cli/tools/upgrade.rs index 4b745b573b..a9b60413b7 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::>().join(" "), + // skip the first argument, which is the executable path + std::env::args().skip(1).collect::>().join(" "), output_exe_path.display(), ) });