From 5b70f79636d468c3be2620c78111c53bed6fdc8c Mon Sep 17 00:00:00 2001 From: Marcus Weiner Date: Sun, 4 Nov 2018 03:35:49 +0100 Subject: [PATCH] Fix arg for Go 1.11 --- api/errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/errors.go b/api/errors.go index f49d8c5..d4fe3bd 100644 --- a/api/errors.go +++ b/api/errors.go @@ -58,7 +58,7 @@ func (e *HTTPError) WithInternalError(err error) *HTTPError { // WithInternalMessage adds internal message information to the error func (e *HTTPError) WithInternalMessage(fmtString string, args ...interface{}) *HTTPError { - e.InternalMessage = fmt.Sprintf(fmtString, args) + e.InternalMessage = fmt.Sprintf(fmtString, args...) return e }