Skip to content

Commit

Permalink
Make Tempfile#unlink warning only in verbose mode. Fixes #1752.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Dec 8, 2014
1 parent 945fcbd commit a4ead5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/ext/tempfile/Tempfile.java
Expand Up @@ -193,7 +193,7 @@ public IRubyObject unlink(ThreadContext context) {
}
} else {
// else, no-op, since we can't unlink the file without breaking stat et al
context.runtime.getWarnings().warn("Tempfile#unlink or delete called on open file; ignoring");
context.runtime.getWarnings().warning("Tempfile#unlink or delete called on open file; ignoring");
}
return context.runtime.getNil();
}
Expand Down

0 comments on commit a4ead5a

Please sign in to comment.