Skip to content
Permalink
Browse files
Make Tempfile#unlink warning only in verbose mode. Fixes #1752.
  • Loading branch information
headius committed Dec 8, 2014
1 parent 945fcbd commit a4ead5ac674181244a8df874ab759dfa7437bd50
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/java/org/jruby/ext/tempfile/Tempfile.java
@@ -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();
}

0 comments on commit a4ead5a

Please sign in to comment.