summaryrefslogtreecommitdiff
path: root/cmd/util/cprint.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-02-10 12:25:56 +0300
committerValery Piashchynski <[email protected]>2020-02-10 12:25:56 +0300
commit02be3eec1d8323a16031e86c1ddcc5c52c440176 (patch)
treeade1230c7d4b9a23997e414e6622094ceb0fb5fa /cmd/util/cprint.go
parent809458f32ff2676e35027f6cce1cbf6ae768423a (diff)
Add go.sum to VCS (it contains hashes, so, should be commited)
Return and process error from cprint and exit.go functions Update build.sh, remove LDFLAGS and CGO directives
Diffstat (limited to 'cmd/util/cprint.go')
-rw-r--r--cmd/util/cprint.go8
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
}