summaryrefslogtreecommitdiff
path: root/lib/chef/json_compat.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@getchef.com>2014-08-12 11:02:20 -0700
committerdanielsdeleo <dan@getchef.com>2014-08-12 11:02:20 -0700
commitd188093dccf97428dcf625c57a996faada88a31b (patch)
tree24a5c8f4a7a00a3b220cc85feece0f995065645b /lib/chef/json_compat.rb
parenta3c4a74141f542009fa9ac38a79feef1252355cb (diff)
downloadchef-d188093dccf97428dcf625c57a996faada88a31b.tar.gz
Fix error class typo, bump ffi-yajl requirement to pull in bugfixes
Diffstat (limited to 'lib/chef/json_compat.rb')
-rw-r--r--lib/chef/json_compat.rb2
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