tweak fatal() and warn()

This commit is contained in:
John Gebbie 2023-04-23 10:59:54 +01:00
parent 87ec7cf475
commit b12bc48ef5

View file

@ -89,14 +89,12 @@ DOTOOL_XKB_VARIANT.
} }
func fatal(a ...any) { func fatal(a ...any) {
fmt.Fprint(os.Stderr, "dotool: ") fmt.Fprintln(os.Stderr, "dotool:", fmt.Sprint(a...))
fmt.Fprintln(os.Stderr, a...)
os.Exit(1) os.Exit(1)
} }
func warn(a ...any) { func warn(a ...any) {
fmt.Fprint(os.Stderr, "dotool WARNING: ") fmt.Fprintln(os.Stderr, "dotool: WARNING:", fmt.Sprint(a...))
fmt.Fprintln(os.Stderr, a...)
} }
func log(err error) { func log(err error) {