Skip to content

Commit 965fcdc

Browse files
committed
scala: fixed an incorrect processing of runtime errors in a script
1 parent 233a085 commit 965fcdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RubyScript/src/org/knime/ext/jruby/RubyScriptNodeModel.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ end
388388

389389
} else {
390390
script_error.errType = """(?<=\()(\w*)""".r
391-
.findFirstMatchIn(err).map(_ group 2).getOrElse(script_error.errType)
391+
.findFirstMatchIn(err).map(_ group 1).getOrElse(script_error.errType)
392392

393393
val cause = thr.getCause
394394
cause.getStackTrace

0 commit comments

Comments
 (0)