8000
We read every piece of feedback, and take your input very seriously.
8000 To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b37016 + d87f727 commit ed2d333Copy full SHA for ed2d333
lib/queue/job.js
@@ -155,7 +155,7 @@ exports.get = function(id, fn){
155
client.hgetall('q:job:' + job.id, function(err, hash){
156
if (err) return fn(err);
157
if (!hash) return fn(new Error('job "' + job.id + '" doesnt exist'));
158
- if (!hash.type) return fn();
+ if (!hash.type) return fn(new Error('job "' + job.id + '" is invalid'));
159
// TODO: really lame, change some methods so
160
// we can just merge these
161
job.type = hash.type;
0 commit comments