From 9498118314b147dfe326534541197ec63e7abb1e Mon Sep 17 00:00:00 2001 From: Alec Thomas Date: Wed, 6 Jun 2018 18:34:05 +1000 Subject: [PATCH] Prefix "error: " to error messages. --- kong.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kong.go b/kong.go index a8a74df..8ad33b7 100644 --- a/kong.go +++ b/kong.go @@ -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.