provisioner/chef-solo: better error for bad type in JSON

This commit is contained in:
Mitchell Hashimoto 2014-04-28 22:18:21 -07:00
parent 8fc46aaa82
commit 4379997c2c
1 changed files with 1 additions and 1 deletions

View File

@ -529,7 +529,7 @@ func (p *Provisioner) deepJsonFix(key string, current interface{}) (interface{},
case string:
return c, nil
default:
return nil, fmt.Errorf("Unknown type for key: '%s'", key)
return nil, fmt.Errorf("Unknown type for key '%s': %T", key, current)
}
}