Travis build: 1848 [cron]

This commit is contained in:
30secondsofcode
2018-03-23 20:43:11 +00:00
parent 5da6311ddc
commit fea407e1bd
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
const attempt = (fn, ...args) => {
try {
return fn(args);
return fn(...args);
} catch (e) {
return e instanceof Error ? e : new Error(e);
}