Skip to content

Commit 41b8da6

Browse files
authored
chore: update deps (#35)
BREAKING CHANGE: only node 10 or above are supported
1 parent 03a36d3 commit 41b8da6

4 files changed

Lines changed: 962 additions & 8 deletions

File tree

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
language: node_js
22
node_js:
3-
- "0.12"
4-
- "4"
5-
- "5"
3+
- "10"
4+
- "12"

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function promiseRetry(fn, options) {
3131
err = err.retried;
3232
}
3333

34-
throw errcode('Retrying', 'EPROMISERETRY', { retried: err });
34+
throw errcode(new Error('Retrying'), 'EPROMISERETRY', { retried: err });
3535
}, number);
3636
})
3737
.then(resolve, function (err) {

0 commit comments

Comments
 (0)