Skip to content
Permalink
Browse files
Revert "[Truffle] Make the warning format match MRI and JRuby."
This reverts commit aed9947.
  • Loading branch information
nirvdrum committed Jan 16, 2015
1 parent 6a96437 commit acda7f1e6ad32c2de159f9b2839580063dc73acb
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/java/org/jruby/common/RubyWarnings.java
@@ -81,7 +81,7 @@ public void warn(ID id, String fileName, int lineNumber, String message) {

StringBuilder buffer = new StringBuilder(100);

buffer.append(fileName).append(':').append(lineNumber).append(": ");
buffer.append(fileName).append(':').append(lineNumber).append(' ');
buffer.append("warning: ").append(message).append('\n');
IRubyObject errorStream = runtime.getGlobalVariables().get("$stderr");
errorStream.callMethod(runtime.getCurrentContext(), "write", runtime.newString(buffer.toString()));

0 comments on commit acda7f1

Please sign in to comment.