Commit 4379997c authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

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

parent 8fc46aaa
......@@ -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)
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment