Skip to content

Commit b071728

Browse files
committedDec 14, 2017
trivial. match MRI error string more
1 parent 4a07463 commit b071728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎core/src/main/java/org/jruby/RubyNumeric.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ public RubyNumeric asNumeric() {
649649
*/
650650
@JRubyMethod(name = "singleton_method_added")
651651
public static IRubyObject sadded(IRubyObject self, IRubyObject name) {
652-
throw self.getRuntime().newTypeError("can't define singleton method " + name + " for " + self.getType().getName());
652+
throw self.getRuntime().newTypeError("can't define singleton method \"" + name + "\" for " + self.getType().getName());
653653
}
654654

655655
/** num_init_copy

0 commit comments

Comments
 (0)
Please sign in to comment.