diff options
Diffstat (limited to 'cmd/ask/main.go')
| -rw-r--r-- | cmd/ask/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/ask/main.go b/cmd/ask/main.go index 72b67e3..afab992 100644 --- a/cmd/ask/main.go +++ b/cmd/ask/main.go @@ -2,6 +2,7 @@ package main import ( "context" + "fmt" "os" "codeberg.org/snonux/hexai/internal/askcli" @@ -11,6 +12,8 @@ func main() { d := askcli.NewDispatcher(nil) code, err := d.Dispatch(context.Background(), os.Args[1:], os.Stdin, os.Stdout, os.Stderr) if err != nil { + // Print the internal error so callers get a useful diagnostic message. + fmt.Fprintln(os.Stderr, err) os.Exit(code) } if code != 0 { |
