Remove logic that exited even if the error was not an OsExiter
This was introduced in #496, but was discovered to be a regression in the behavior of the library.
This commit is contained in:
@@ -97,15 +97,6 @@ func HandleExitCoder(err error) {
|
||||
OsExiter(code)
|
||||
return
|
||||
}
|
||||
|
||||
if err.Error() != "" {
|
||||
if _, ok := err.(ErrorFormatter); ok {
|
||||
fmt.Fprintf(ErrWriter, "%+v\n", err)
|
||||
} else {
|
||||
fmt.Fprintln(ErrWriter, err)
|
||||
}
|
||||
}
|
||||
OsExiter(1)
|
||||
}
|
||||
|
||||
func handleMultiError(multiErr MultiError) int {
|
||||
|
Reference in New Issue
Block a user