Write err to stderr, exit 1 if err != ""

Closes #475
This commit is contained in:
Dan Buch
2016-07-24 11:57:51 -04:00
parent 492afb9149
commit dd253d122c
3 changed files with 69 additions and 4 deletions

View File

@@ -88,5 +88,11 @@ func HandleExitCoder(err error) {
for _, merr := range multiErr.Errors {
HandleExitCoder(merr)
}
return
}
if err.Error() != "" {
fmt.Fprintln(ErrWriter, err)
OsExiter(1)
}
}