diff --git a/lib/worker.js b/lib/worker.js index 6ceb188f..88402966 100644 --- a/lib/worker.js +++ b/lib/worker.js @@ -235,6 +235,8 @@ worker.prototype.performInline = function(func, args, callback){ if(toRun === false){ return callback(); } var combinedInputs = [].slice.call(args).concat([function(err, result){ + self.result = result; + self.error = err; returnCounter++; if(err){ return callback(err); } if(returnCounter !== 2){ return callback(callbackError); } diff --git a/package.json b/package.json index f054a2dc..7a565000 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "name": "node-resque", "description": "an opinionated implementation of resque in node", "license": "Apache-2.0", - "version": "2.1.0", + "version": "2.1.1", "homepage": "http://github.com/taskrabbit/node-resque", "repository": { "type": "git",