Skip to content

Commit

Permalink
Document on exit code in case of MultiError is given
Browse files Browse the repository at this point in the history
  • Loading branch information
hirose31 committed Jan 12, 2017
1 parent 71ced40 commit 286b4b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (ee *ExitError) ExitCode() int {
// HandleExitCoder checks if the error fulfills the ExitCoder interface, and if
// so prints the error to stderr (if it is non-empty) and calls OsExiter with the
// given exit code. If the given error is a MultiError, then this func is
// called on all members of the Errors slice.
// called on all members of the Errors slice and calls OsExiter with the last exit code.
func HandleExitCoder(err error) {
if err == nil {
return
Expand Down

0 comments on commit 286b4b5

Please sign in to comment.