print error to stderr

This commit is contained in:
raziman 2021-02-18 09:49:41 +08:00
parent 6797676e64
commit 7ae79c4dfb

View File

@ -32,6 +32,7 @@ func logDebug(msg string) {
// prefer this instead of panic
func die(err error) {
logError(err)
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}