Prefix "error: " to error messages.

This commit is contained in:
Alec Thomas
2018-06-06 18:34:05 +10:00
parent d559a6a785
commit 9498118314
+1 -1
View File
@@ -163,7 +163,7 @@ func (k *Kong) Printf(format string, args ...interface{}) {
// Errorf writes a message to Kong.Stderr with the application name prefixed.
func (k *Kong) Errorf(format string, args ...interface{}) {
fmt.Fprintf(k.Stderr, k.Model.Name+": "+format, args...)
fmt.Fprintf(k.Stderr, k.Model.Name+": error: "+format, args...)
}
// FatalIfError terminates with an error message if err != nil.