Skip to content

Commit c208a87

Browse files
committed
[refactor] cleanup internal raise wout backtrace
1 parent 184bc51 commit c208a87

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/org/jruby/ext/openssl/SSL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ private static RaiseException newWaitSSLError(final Ruby runtime, final String n
231231
if ( waitErrorBacktrace ) {
232232
return Utils.newError(runtime, errorClass, message, false);
233233
}
234-
return Utils.newErrorWithoutTrace(runtime, errorClass, message, false);
234+
return Utils.newErrorWithoutTrace(runtime, errorClass, message);
235235
}
236236

237237
static RubyModule _SSL(final Ruby runtime) {

src/main/java/org/jruby/ext/openssl/Utils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ static RaiseException newRuntimeError(Ruby runtime, String msg) {
7070
return new RaiseException(runtime, runtime.getRuntimeError(), msg, true);
7171
}
7272

73-
static RaiseException newErrorWithoutTrace(Ruby runtime, RubyClass errorClass, String message, boolean nativeException) {
73+
static RaiseException newErrorWithoutTrace(Ruby runtime, RubyClass errorClass, String message) {
7474
final IRubyObject backtrace = runtime.newEmptyArray(); // runtime.getNil();
75-
return new RaiseException(runtime, errorClass, message, backtrace, nativeException);
75+
return new RaiseException(runtime, errorClass, message, backtrace, false);
7676
}
7777

7878
static RaiseException newError(Ruby runtime, RubyClass errorClass, String message, boolean nativeException) {

0 commit comments

Comments
 (0)