diff --git a/index.js b/index.js index 092f275..ae1deb9 100644 --- a/index.js +++ b/index.js @@ -32,7 +32,7 @@ function promiseRetry(fn, options) { } throw errcode('Retrying', 'EPROMISERETRY', { retried: err }); - }, number); + }, number, operation); }) .then(resolve, function (err) { if (isRetryError(err)) { diff --git a/package.json b/package.json index 4292524..db8ce27 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ }, "dependencies": { "err-code": "^1.0.0", - "retry": "^0.10.0" + "retry": "git://github.com/timbowhite/node-retry" }, "engines": { "node": ">=0.12"