Refine error handling behavior

so that exit 1 happens as long as error is non-nil
This commit is contained in:
Dan Buch
2016-07-24 12:09:05 -04:00
parent 8ae5b3d5e2
commit e9688813e4
3 changed files with 4 additions and 3 deletions

View File

@@ -93,6 +93,6 @@ func HandleExitCoder(err error) {
if err.Error() != "" {
fmt.Fprintln(ErrWriter, err)
OsExiter(1)
}
OsExiter(1)
}