Comparing version 1.1.6 to 1.1.7
{ | ||
"name": "rerun", | ||
"description": "A retry library for node.js", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"author": "BigPanda <noam@bigpanda.io>", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -21,7 +21,7 @@ var Q = require('q'); | ||
if (error instanceof RejectError || error instanceof userRejectError || --retries <= 0) { | ||
logger.error('Function execution failed permanently', {identifier: identifier}) | ||
logger.error('Function execution failed permanently', {identifier: identifier, error_message: error.message}) | ||
deferred.reject(error); | ||
} else { | ||
var timeToWait = randomizeRetry ? Math.random() * (timeout / 2) + (timeout / 2) : timeout; | ||
logger.warn('Function execution failed', {retries: retries, wait_for: timeToWait, identifier: identifier}) | ||
logger.warn('Function execution failed', {retries: retries, wait_for: timeToWait, identifier: identifier, error_message: error.message}) | ||
Q.delay(timeToWait).then(function () { return toRetry() }).then(_succeed, _failed); | ||
@@ -28,0 +28,0 @@ timeout *= factor; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63316