From a4c9562e42c4a4ccccbf8b754d89b0f21558a580 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 11 Apr 2020 18:35:20 -0700 Subject: [PATCH] Dump the actual type, not the numeric equivalent --- parser/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/parser.go b/parser/parser.go index 4533314..d22bb45 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -60,7 +60,7 @@ func (cfr *ConfigurationFileReplacement) UnmarshalJSON(data []byte) error { } else { if dt != jsonparser.String && dt != jsonparser.Number && dt != jsonparser.Boolean { return errors.New( - fmt.Sprintf("cannot parse JSON: received unexpected replacement value type: %d", dt), + fmt.Sprintf("cannot parse JSON: received unexpected replacement value type: %s", dt.String()), ) }