Skip to content
Snippets Groups Projects
Commit 7af9ad98 authored by syuilo's avatar syuilo
Browse files

Better error handling

parent a858dd44
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment