X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/087d725b5ab41ad34ffd24938482d45a8b99a080..39d1a3fd09f8255298590b4413115ae72e0e3928:/main.go?ds=sidebyside diff --git a/main.go b/main.go index ac4afe4..9c1c8b9 100644 --- a/main.go +++ b/main.go @@ -42,13 +42,14 @@ func run() error { case len(args) == 1 && (args[0] == "help" || args[0] == "--help" || args[0] == "-h"): _, err := fmt.Print(usage) if err != nil { - return err + return fmt.Errorf("write command help: %w", err) } case len(args) == 1 && args[0] == "login": err := chatgptLogin(ctx, os.Stdout) if err != nil { return err } + // A signal is the normal stop of the daemon and the client, so their // result does not include ctx.Err(). case len(args) == 1 && args[0] == "daemon":