Better error handling

This commit is contained in:
syuilo 2018-05-13 16:26:11 +09:00
parent 57cf29dde6
commit 009050a8d4

View file

@ -14,7 +14,7 @@ export default async (job: kue.Job, done): Promise<void> => {
done();
} else {
console.warn(`deliver failed: ${res.statusMessage}`);
done(new Error(res.statusMessage));
done(res);
}
}
};