Skip to content

Commit c99ac8a

Browse files
committed
Don't forget the exception name
Signed-off-by: Brian J. Murrell <brian.murrell@intel.com>
1 parent 48b6277 commit c99ac8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vars/commitPragmaTrusted.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def call(Map config = [:]) {
2424
def (_,val) = (msg =~ /(?mi)^${config['pragma']}:\s*(.+)$/)[0]
2525
println("Found ${val}")
2626
return val
27-
} catch {
27+
} catch (java.lang.IndexOutOfBoundsException e) {
2828
println("Found nothing, returning ${def_value}")
2929
return def_value
3030
}

0 commit comments

Comments
 (0)