From d188093dccf97428dcf625c57a996faada88a31b Mon Sep 17 00:00:00 2001 From: danielsdeleo Date: Tue, 12 Aug 2014 11:02:20 -0700 Subject: Fix error class typo, bump ffi-yajl requirement to pull in bugfixes --- lib/chef/json_compat.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chef/json_compat.rb') 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 -- cgit v1.2.1