diff options
Diffstat (limited to 'lib/chef/json_compat.rb')
-rw-r--r-- | lib/chef/json_compat.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/json_compat.rb b/lib/chef/json_compat.rb index ddccfe5fcb..e92d5c36ae 100644 --- a/lib/chef/json_compat.rb +++ b/lib/chef/json_compat.rb @@ -101,7 +101,7 @@ class Chef def to_json(obj, opts = nil) begin FFI_Yajl::Encoder.encode(obj, opts) - rescue FFI_Yajl::EndodeError => e + rescue FFI_Yajl::EncodeError => e raise Chef::Exceptions::JSON::EncodeError, e.message end end |