tweak fatal() and warn()
This commit is contained in:
parent
87ec7cf475
commit
b12bc48ef5
1 changed files with 2 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue