Permalink
Browse files

Merge branch 'master' of github.com:taf2/curb

  • Loading branch information...
2 parents 75fd70c + 57f44bc commit ee358a37d21dd5d79e08df898fc18db6ab8b2edb Todd Fisher committed Jan 15, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 ext/curb_postfield.c
View
@@ -41,7 +41,7 @@ void append_to_form(VALUE self,
// 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");
@@ -468,10 +468,10 @@ static VALUE ruby_curl_postfield_to_str(VALUE self) {
}
}
} 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;

0 comments on commit ee358a3

Please sign in to comment.