1
0
mirror of https://github.com/TomWright/dasel.git synced 2022-05-22 02:32:45 +03:00

Write errors to stderr

This commit is contained in:
Tom Wright
2021-11-03 17:32:48 +00:00
parent 67b89e9e0c
commit c66e4a4428

View File

@@ -10,7 +10,7 @@ func main() {
cmd := command.NewRootCMD()
command.ChangeDefaultCommand(cmd, "select", "-v", "--version", "help")
if err := cmd.Execute(); err != nil {
fmt.Println("Error: " + err.Error())
_, _ = fmt.Fprintln(os.Stderr, "Error: "+err.Error())
os.Exit(1)
}
}