kibana/vars/catchErrors.groovy
2020-03-02 15:04:27 -05:00

9 lines
295 B
Groovy

// 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