From e7db61e4fdf906f3dc3694321df94f2d15de31dc Mon Sep 17 00:00:00 2001 From: Maina Wycliffe Date: Wed, 29 Jan 2020 02:55:04 +0300 Subject: [PATCH] fix: spread array over interface --- utils/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/utils.go b/utils/utils.go index 653481e..6ffdbff 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -36,13 +36,13 @@ func ProcessCustomClaimInput(input map[string]string) map[string]interface{} { // StdOutError print an error message to the standard out func StdOutError(format string, a ...interface{}) { - m := aurora.Sprintf(aurora.Red(format), a) + m := aurora.Sprintf(aurora.Red(format), a...) fmt.Fprintf(os.Stdout, "%s\n", m) } // StdOutSuccess print a success message to the standard out func StdOutSuccess(format string, a ...interface{}) { - m := aurora.Sprintf(aurora.Green(format), a) + m := aurora.Sprintf(aurora.Green(format), a...) fmt.Fprintf(os.Stdout, "%s\n", m) }