From 4379997c2c55a1ac5b1227fcb4b808f53650b9d5 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 28 Apr 2014 22:18:21 -0700 Subject: [PATCH] provisioner/chef-solo: better error for bad type in JSON --- provisioner/chef-solo/provisioner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provisioner/chef-solo/provisioner.go b/provisioner/chef-solo/provisioner.go index 0295546cd..9d37b8f90 100644 --- a/provisioner/chef-solo/provisioner.go +++ b/provisioner/chef-solo/provisioner.go @@ -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) } }