ext/curb_postfield.c in curb-0.6.2.1 vs ext/curb_postfield.c in curb-0.6.4.0

- old
+ new

@@ -39,11 +39,11 @@ } else { if ((rbcpf->local_file != Qnil) || (rbcpf->remote_file != Qnil)) { // is a file upload field if (rbcpf->content_proc != Qnil) { // with content proc - rbcpf->buffer_str = rb_funcall(rbcpf->content_proc, idCall, self); + rbcpf->buffer_str = rb_funcall(rbcpf->content_proc, idCall, 1, self); if (rbcpf->remote_file == Qnil) { rb_raise(eCurlErrInvalidPostField, "Cannot post file upload field with no filename"); } else { if (rbcpf->content_type == Qnil) { @@ -466,13 +466,13 @@ rb_str_cat(result, "=", 1); rb_str_concat(result, escd_content); } } } else { - rb_raise(eCurlErrInvalidPostField, "Cannot convert unnamed field to string"); + rb_raise(eCurlErrInvalidPostField, "Cannot convert unnamed field to string %s:%d", __FILE__, __LINE__); } } else { - rb_raise(eCurlErrInvalidPostField, "Cannot convert non-content field to string"); + rb_raise(eCurlErrInvalidPostField, "Cannot convert non-content field to string %s:%d", __FILE__, __LINE__); } return result; }