From bf50ec4ac9a9c8646a1d09770dd0972bac1f602d Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Mon, 4 Jan 2016 11:18:54 -0800 Subject: [PATCH] Added debugging output to debug type= problem on Travis. --- ruby/Gemfile.lock | 2 +- ruby/ext/google/protobuf_c/defs.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ruby/Gemfile.lock b/ruby/Gemfile.lock index 8599da7539..38f13abd41 100644 --- a/ruby/Gemfile.lock +++ b/ruby/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - google-protobuf (3.0.0.alpha.4.0) + google-protobuf (3.0.0.alpha.5.0) GEM remote: https://rubygems.org/ diff --git a/ruby/ext/google/protobuf_c/defs.c b/ruby/ext/google/protobuf_c/defs.c index 7e0cd14cef..804ca07866 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) \