provisioner/chef-solo: better error for bad type in JSON
This commit is contained in:
parent
8fc46aaa82
commit
4379997c2c
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue