summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielsdeleo <dan@getchef.com>2015-01-20 17:30:20 -0800
committerdanielsdeleo <dan@getchef.com>2015-01-20 17:30:20 -0800
commita81096de5d36afbacc6613378d6f837a34535678 (patch)
tree28e568767991a69f66b2789aea57ca3986785b4a
parentaf2b187a9b7856951317e5de06c62f721e40522d (diff)
downloadchef-zero-a81096de5d36afbacc6613378d6f837a34535678.tar.gz
Show invalid data in error message
-rw-r--r--lib/chef_zero/data_store/memory_store_v2.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef_zero/data_store/memory_store_v2.rb b/lib/chef_zero/data_store/memory_store_v2.rb
index 9f8b80e..d330972 100644
--- a/lib/chef_zero/data_store/memory_store_v2.rb
+++ b/lib/chef_zero/data_store/memory_store_v2.rb
@@ -47,7 +47,7 @@ module ChefZero
def create(path, name, data, *options)
if !data.is_a?(String)
- raise "set only works with strings"
+ raise "set only works with strings (given data: #{data.inspect})"
end
parent = _get(path, options.include?(:create_dir))