Skip to content

Commit

Permalink
Merge pull request #298 from ferrous26/master
Browse files Browse the repository at this point in the history
Add missing space to Regexp exception message
  • Loading branch information
headius committed Sep 29, 2012
2 parents 54f80b2 + 1366ea8 commit ccc8988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/jruby/RubyRegexp.java
Expand Up @@ -2307,7 +2307,7 @@ private static IRubyObject operandNoCheck(IRubyObject str) {
private static RubyString operandCheck(Ruby runtime, IRubyObject str) {
if (str instanceof RubySymbol) return (RubyString)((RubySymbol)str).to_s();
IRubyObject tmp = str.checkStringType();
if (tmp.isNil()) throw runtime.newTypeError("can't convert " + str.getMetaClass() + "to String");
if (tmp.isNil()) throw runtime.newTypeError("can't convert " + str.getMetaClass() + " into String");
return (RubyString)tmp;
}

Expand Down

0 comments on commit ccc8988

Please sign in to comment.