ext/wankel/yajl_helpers.c in wankel-0.6.1 vs ext/wankel/yajl_helpers.c in wankel-0.6.2
- old
+ new
@@ -26,10 +26,10 @@
// Yajl Helpers ==============================================================
void yajl_helper_check_status(yajl_handle handle, yajl_status status, int verbose, const unsigned char * jsonText, size_t jsonTextLength) {
if(status != yajl_status_ok) {
unsigned char * str = yajl_get_error(handle, verbose, jsonText, jsonTextLength);
yajl_free_error(handle, str);
- rb_raise(rb_const_get(rb_const_get(rb_cObject, rb_intern("Wankel")), rb_intern("ParseError")), (const char*) str);
+ rb_raise(rb_const_get(rb_const_get(rb_cObject, rb_intern("Wankel")), rb_intern("ParseError")), "%s", (const char*) str);
}
}
void yajl_helper_check_gen_status(yajl_gen_status status) {
VALUE error = rb_const_get(rb_const_get(rb_cObject, rb_intern("Wankel")), rb_intern("EncodeError"));
\ No newline at end of file