From 91df54a5c20205492538d17007d5a8ff05a344a5 Mon Sep 17 00:00:00 2001 From: Manu Mtz-Almeida Date: Fri, 4 Jul 2014 04:31:11 +0200 Subject: [PATCH] Better print formatting for Errors --- gin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gin.go b/gin.go index 4b619183..d76eae1c 100644 --- a/gin.go +++ b/gin.go @@ -71,9 +71,10 @@ type ( func (a ErrorMsgs) String() string { var buffer bytes.Buffer for i, msg := range a { - text := fmt.Sprintf("Error #%02d: %s \n Meta: %v\n\n", (i + 1), msg.Err, msg.Meta) + text := fmt.Sprintf("Error #%02d: %s \n Meta: %v\n", (i + 1), msg.Err, msg.Meta) buffer.WriteString(text) } + buffer.WriteString("\n") return buffer.String() }