Skip to content

Commit

Permalink
v1.0.4 优化报错提示
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyPuppy514 committed Dec 1, 2024
1 parent 2d5b152 commit 6fc0812
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "url-scheme-handler"
version = "1.0.3"
version = "1.0.4"
edition = "2021"

[dependencies]
Expand Down
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,11 @@ fn main() -> std::io::Result<()> {
Ok(output) => {
if !output.status.success() {
let stderr = String::from_utf8_lossy(&output.stderr);
show_message_box("Error", &stderr);
let stdout = String::from_utf8_lossy(&output.stdout);
show_message_box(
"Error",
&format!("{}\n{}", stderr, stdout),
);
} else {
println!("Command executed successfully");
}
Expand Down

0 comments on commit 6fc0812

Please sign in to comment.