From 41e9e42239ac7aa5785ab80859eddf2d0a13812d Mon Sep 17 00:00:00 2001 From: Erin Call Date: Thu, 26 Dec 2019 11:31:45 -0800 Subject: [PATCH] Emit a trailing newline on execution error [#15] Just something I noticed while testing the help command's error case. --- cmd/drone-helm/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/drone-helm/main.go b/cmd/drone-helm/main.go index 61673b2..3ca31dd 100644 --- a/cmd/drone-helm/main.go +++ b/cmd/drone-helm/main.go @@ -28,7 +28,7 @@ func main() { // Expect the plan to go off the rails if err != nil { - fmt.Fprintf(os.Stderr, err.Error()) + fmt.Fprintf(os.Stderr, "%s\n", err.Error()) // Throw away the plan os.Exit(1) }