Skip to content

Commit

Permalink
fix ineffectual assign
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlikelee committed Nov 20, 2024
1 parent f446da7 commit e5a37d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions orbit/pkg/execuser/execuser_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func runWithOutput(path string, opts eopts) (output []byte, exitCode int, err er
if err != nil {
if exitErr, ok := err.(*exec.ExitError); ok {
exitCode = exitErr.ExitCode()
return output, exitCode, fmt.Errorf("%q exited with code %d: %w", path, exitCode, err)
}
return output, -1, fmt.Errorf("%q error: %w", path, err)
}
Expand Down

0 comments on commit e5a37d0

Please sign in to comment.