mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
fix(upgrade/windows): correct command in windows access denied message (#17049)
This commit is contained in:
parent
ddd3506e69
commit
9f82abb4b4
1 changed files with 7 additions and 6 deletions
|
@ -379,13 +379,14 @@ pub async fn upgrade(
|
||||||
return Err(err).with_context(|| {
|
return Err(err).with_context(|| {
|
||||||
format!(
|
format!(
|
||||||
concat!(
|
concat!(
|
||||||
"Access denied: Could not replace the deno executable. This may be ",
|
"Could not replace the deno executable. This may be because an ",
|
||||||
"because an existing deno process is running. Please ensure there ",
|
"existing deno process is running. Please ensure there are no ",
|
||||||
"are no running deno processes (ex. Stop-Process -Name deno ; deno {}), ",
|
"running deno processes (ex. Stop-Process -Name deno ; deno {}), ",
|
||||||
"close any editors before upgrading, and ensure you have sufficient ",
|
"close any editors before upgrading, and ensure you have ",
|
||||||
"permission to '{}'."
|
"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(),
|
output_exe_path.display(),
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue