Skip to content

Commit 7785c24

Browse files
committed
[fix] wrong condition && when converting fails
1 parent 757d34e commit 7785c24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jruby/rack/ext/Logger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ public IRubyObject initialize(final ThreadContext context, final IRubyObject[] a
628628
}
629629
catch (RaiseException e) { // TypeError
630630
final IRubyObject error = e.getException();
631-
if ( error == null && ! context.runtime.getTypeError().isInstance(error) ) {
631+
if ( error == null || ! context.runtime.getTypeError().isInstance(error) ) {
632632
throw e;
633633
}
634634
// support passing in a ServletContext instance (for convenience) :

0 commit comments

Comments
 (0)