diff options
author | danielsdeleo <dan@getchef.com> | 2015-01-20 17:30:20 -0800 |
---|---|---|
committer | danielsdeleo <dan@getchef.com> | 2015-01-20 17:30:20 -0800 |
commit | a81096de5d36afbacc6613378d6f837a34535678 (patch) | |
tree | 28e568767991a69f66b2789aea57ca3986785b4a /lib | |
parent | af2b187a9b7856951317e5de06c62f721e40522d (diff) | |
download | chef-zero-a81096de5d36afbacc6613378d6f837a34535678.tar.gz |
Show invalid data in error message
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef_zero/data_store/memory_store_v2.rb | 2 |
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)) |