aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/main.go b/main.go
index 3a39852..1da9ba1 100644
--- a/main.go
+++ b/main.go
@@ -27,11 +27,7 @@ func main() {
fmt.Print("\n")
}
-func die(strings ...any) {
- fmt.Fprint(os.Stderr, os.Args[0])
- for _, s := range strings {
- fmt.Fprintf(os.Stderr, ": %v", s)
- }
- fmt.Fprint(os.Stderr, "\n")
+func die(e error) {
+ fmt.Fprintf(os.Stderr, "%s: %s\n", os.Args[0], e)
os.Exit(1)
}