diff options
Diffstat (limited to 'cmd/util/cprint.go')
-rw-r--r-- | cmd/util/cprint.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/util/cprint.go b/cmd/util/cprint.go index 85202b0a..3a986fd6 100644 --- a/cmd/util/cprint.go +++ b/cmd/util/cprint.go @@ -38,6 +38,10 @@ func Sprintf(format string, args ...interface{}) string { } // Panicf prints `<white+hb>color formatted message to STDERR</reset>`. -func Panicf(format string, args ...interface{}) { - fmt.Fprint(os.Stderr, Sprintf(format, args...)) +func Panicf(format string, args ...interface{}) error { + _, err := fmt.Fprint(os.Stderr, Sprintf(format, args...)) + if err != nil { + return err + } + return nil } |