Use same exception class in ruby and jruby
This commit is contained in:
parent
0df1e398eb
commit
8bcd0d7fc7
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ public class RubyMessage extends RubyObject {
|
|||
maps.put(fieldDescriptor, map);
|
||||
} else if (fieldDescriptor.isRepeated()) {
|
||||
if (!(value instanceof RubyArray))
|
||||
throw runtime.newTypeError("Expected array as initializer var for repeated field.");
|
||||
throw runtime.newArgumentError("Expected array as initializer var for repeated field.");
|
||||
RubyRepeatedField repeatedField = rubyToRepeatedField(context, fieldDescriptor, value);
|
||||
addRepeatedField(fieldDescriptor, repeatedField);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue