Skip to content

Commit

Permalink
root: Improve error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
a-kenji committed Sep 3, 2024
1 parent 10a12a2 commit d09eb19
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bin/flake-edit/root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ impl Root {
// .arg("--show-cdup")
.stdout(Stdio::piped())
.stderr(Stdio::piped())
.output()
.expect("Failed to execute command");
.output()?;

if output.status.success() {
let stdout = String::from_utf8_lossy(&output.stdout);
Expand Down

0 comments on commit d09eb19

Please sign in to comment.