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:
Jesse Szwedko
2017-03-04 14:33:36 -08:00
parent 8d8f927bcb
commit 9e5b04886c
2 changed files with 1 additions and 60 deletions

View File

@@ -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 {