Skip to content

Commit

Permalink
scripts: handle exec error properly
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
emidoots committed Dec 23, 2022
1 parent 88e30f9 commit a0805d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/wrench/scripts/scripts.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func ExecArgs(name string, args []string, opt ...CmdOption) Cmd {
if exitError, ok := err.(*exec.ExitError); ok {
return fmt.Errorf("'%s': error: exit code: %v", name, exitError.ExitCode())
}
return err
}
return nil
}
Expand Down

0 comments on commit a0805d6

Please sign in to comment.