]> git.giacomolli.uk - onechat/blobdiff - main.go
Add local context to chat operation failures
[onechat] / main.go
diff --git a/main.go b/main.go
index 400538a39a3193be98a7f54d3060ce459a9bc970..89eb839d1f970eba36047c3a7cc4f395749576fe 100644 (file)
--- a/main.go
+++ b/main.go
@@ -12,7 +12,9 @@ import (
 func main() {
        err := run()
        if err != nil {
-               fmt.Fprintln(os.Stderr, "onechat:", err)
+               // A failed error report cannot be reported through the same
+               // stream.
+               fmt.Fprintln(os.Stderr, "onechat:", err) // nolint: errcheck
                os.Exit(1)
        }
 }