diff options
Diffstat (limited to 'node_modules/promise-retry/index.js')
-rw-r--r-- | node_modules/promise-retry/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/promise-retry/index.js b/node_modules/promise-retry/index.js index 092f27568..5df48ae91 100644 --- a/node_modules/promise-retry/index.js +++ b/node_modules/promise-retry/index.js @@ -31,7 +31,7 @@ function promiseRetry(fn, options) { err = err.retried; } - throw errcode('Retrying', 'EPROMISERETRY', { retried: err }); + throw errcode(new Error('Retrying'), 'EPROMISERETRY', { retried: err }); }, number); }) .then(resolve, function (err) { |