Skip to content

Commit

Permalink
Update main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 authored Sep 6, 2024
1 parent 1803d2e commit 9b90c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fn run() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::new(&args[1]);
cmd.arg(params);
if let Err(e) = cmd.spawn() {
return Err(format!("Failed to start program\n{}\n{}\n{}", e, &args[1], params).into());
return Err(format!("Failed to start program\n{}\n{}\n请尝试以管理员权限启动软件", e, &args[1]).into());
}
Ok(())
}
Expand Down

0 comments on commit 9b90c2b

Please sign in to comment.