summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index f0074b3e..6daf6eea 100644
--- a/main.go
+++ b/main.go
@@ -36,7 +36,7 @@ func printScript(label string, content []byte) {
func exit(code int, err error) {
if err != nil {
- os.Stderr.WriteString(err.Error() + "\n")
+ fmt.Fprintln(os.Stderr, err.Error())
}
os.Exit(code)
}