mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-28 04:33:07 +02:00
Better error handling
This commit is contained in:
parent
a858dd4453
commit
7af9ad9869
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue