kibana/vars/catchErrors.groovy

9 lines
295 B
Groovy
Raw Normal View History

2020-03-02 21:04:27 +01:00
// Basically, this is a shortcut for catchError(catchInterruptions: false) {}
// By default, catchError will swallow aborts/timeouts, which we almost never want
def call(Map params = [:], Closure closure) {
params.catchInterruptions = false
return catchError(params, closure)
}
return this