aboutsummaryrefslogtreecommitdiffhomepage
path: root/ruby/ext/google/protobuf_c
diff options
context:
space:
mode:
authorGravatar Josh Haberman <jhaberman@gmail.com>2016-01-04 11:18:54 -0800
committerGravatar Josh Haberman <jhaberman@gmail.com>2016-01-11 16:15:46 -0800
commitbf50ec4ac9a9c8646a1d09770dd0972bac1f602d (patch)
tree4560344eec14eb80301378c5c51c2aed4ec7540d /ruby/ext/google/protobuf_c
parentea909a57e4696697c6074665abdce0c616d72e72 (diff)
Added debugging output to debug type= problem on Travis.
Diffstat (limited to 'ruby/ext/google/protobuf_c')
-rw-r--r--ruby/ext/google/protobuf_c/defs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ruby/ext/google/protobuf_c/defs.c b/ruby/ext/google/protobuf_c/defs.c
index 7e0cd14c..804ca078 100644
--- a/ruby/ext/google/protobuf_c/defs.c
+++ b/ruby/ext/google/protobuf_c/defs.c
@@ -543,7 +543,8 @@ VALUE FieldDescriptor_name_set(VALUE _self, VALUE str) {
upb_fieldtype_t ruby_to_fieldtype(VALUE type) {
if (TYPE(type) != T_SYMBOL) {
- rb_raise(rb_eArgError, "Expected symbol for field type.");
+ rb_raise(rb_eArgError, "Expected symbol for field type, not: %s (%d)",
+ RSTRING_PTR(rb_inspect(type)), TYPE(type));
}
#define CONVERT(upb, ruby) \