From 3045b61dbea70b6ecef5e10d257c91d5d6346de2 Mon Sep 17 00:00:00 2001 From: Joshua Herring Date: Mon, 11 May 2026 08:50:27 -0400 Subject: [PATCH] send error to stderr --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 6e5a5e2..047e8e1 100644 --- a/main.go +++ b/main.go @@ -20,6 +20,7 @@ func main() { case "run_command": commands.RunCommand() default: - fmt.Println("Command not found: %s\n", os.Args[1]) + fmt.Fprintf(os.Stderr, "Command not found: %s\n", os.Args[1]) + os.Exit(1) } }