summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-01-22 08:14:18 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-01-22 08:14:18 -0800
commit8bc806d4fc4f22ebb9c38c20838fa0824b5e6c21 (patch)
treecab3d559f575fb15554b6a001442fb7b4ac114d3
parente57bb62ac5ca1e4c8cac75c92da9780181960a2b (diff)
parent73d61ded7decbc57dee1a96c0192838c6f87e66f (diff)
downloadffi-yajl-8bc806d4fc4f22ebb9c38c20838fa0824b5e6c21.tar.gz
Merge pull request #37 from glensc/unknown-error
include status code for Unknown Error
-rw-r--r--lib/ffi_yajl/encoder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ffi_yajl/encoder.rb b/lib/ffi_yajl/encoder.rb
index 7abcf00..58b817a 100644
--- a/lib/ffi_yajl/encoder.rb
+++ b/lib/ffi_yajl/encoder.rb
@@ -47,7 +47,7 @@ module FFI_Yajl
when 6 # yajl_gen_no_buf
raise FFI_Yajl::EncodeError, "YAJL internal error: yajl_gen_get_buf was called, but a print callback was specified, so no internal buffer is available"
else
- raise FFI_Yajl::EncodeError, "Unknown YAJL Error, please report this as a bug"
+ raise FFI_Yajl::EncodeError, "Unknown YAJL Error (#{status}), please report this as a bug"
end
end
end