From b12bc48ef521bad37b7df3aceba483793a837da1 Mon Sep 17 00:00:00 2001 From: John Gebbie Date: Sun, 23 Apr 2023 10:59:54 +0100 Subject: [PATCH] tweak fatal() and warn() --- dotool.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dotool.go b/dotool.go index 6b6d3dd..f8d0c98 100644 --- a/dotool.go +++ b/dotool.go @@ -89,14 +89,12 @@ DOTOOL_XKB_VARIANT. } func fatal(a ...any) { - fmt.Fprint(os.Stderr, "dotool: ") - fmt.Fprintln(os.Stderr, a...) + fmt.Fprintln(os.Stderr, "dotool:", fmt.Sprint(a...)) os.Exit(1) } func warn(a ...any) { - fmt.Fprint(os.Stderr, "dotool WARNING: ") - fmt.Fprintln(os.Stderr, a...) + fmt.Fprintln(os.Stderr, "dotool: WARNING:", fmt.Sprint(a...)) } func log(err error) {