diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-05-13 16:26:11 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-05-13 16:26:11 +0900 |
| commit | 7af9ad9869f58b8681eccce02cd39c793c5e6ba7 (patch) | |
| tree | 0bcf22d31e372c5ab1466bcfdbe458665e7621e7 /src/queue | |
| parent | 2.6.0 (diff) | |
| download | sharkey-7af9ad9869f58b8681eccce02cd39c793c5e6ba7.tar.gz sharkey-7af9ad9869f58b8681eccce02cd39c793c5e6ba7.tar.bz2 sharkey-7af9ad9869f58b8681eccce02cd39c793c5e6ba7.zip | |
Better error handling
Diffstat (limited to 'src/queue')
| -rw-r--r-- | src/queue/processors/http/deliver.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/queue/processors/http/deliver.ts b/src/queue/processors/http/deliver.ts index 0a228c1871..6810fa4d91 100644 --- a/src/queue/processors/http/deliver.ts +++ b/src/queue/processors/http/deliver.ts @@ -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); } } }; |