Dump the actual type, not the numeric equivalent

This commit is contained in:
Dane Everitt 2020-04-11 18:35:20 -07:00
parent 7d7766e4cb
commit a4c9562e42
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -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()),
)
}