diff --git a/pkg/lib/errors/message.go b/pkg/lib/errors/message.go index 23df09bc49..6606f183cb 100644 --- a/pkg/lib/errors/message.go +++ b/pkg/lib/errors/message.go @@ -25,7 +25,7 @@ import ( ) func PrintError(err error, strs ...string) { - os.Stderr.WriteString(ErrorStr(err, strs...)) + os.Stderr.WriteString(ErrorStr(err, strs...) + "\n") // PrintStacktrace(err) } diff --git a/pkg/lib/print/print.go b/pkg/lib/print/print.go index bf1c11a3b1..b5942064da 100644 --- a/pkg/lib/print/print.go +++ b/pkg/lib/print/print.go @@ -45,14 +45,14 @@ func StderrBoldFirstLine(msg string) { msgParts := strings.Split(msg, "\n") if len(msgParts[0]) > _maxBoldLength { - os.Stderr.WriteString(msg) + os.Stderr.WriteString(msg + "\n") return } - os.Stderr.WriteString(console.Bold(msgParts[0])) + os.Stderr.WriteString(console.Bold(msgParts[0]) + "\n") if len(msgParts) > 1 { - os.Stderr.WriteString(strings.Join(msgParts[1:], "\n")) + os.Stderr.WriteString(strings.Join(msgParts[1:], "\n") + "\n") } }