We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08503cf commit 67c6563Copy full SHA for 67c6563
src/taskmaster.ts
@@ -22,9 +22,16 @@ const errorQ = 'error_queue'
22
mkdir('-p', config.RUNBOX.DIR)
23
24
amqp.connect(`amqp://${config.AMQP.USER}:${config.AMQP.PASS}@${config.AMQP.HOST}:${config.AMQP.PORT}`, (err, connection: Connection) => {
25
- if (err) throw err
+ if (err) {
26
+ Raven.captureException(err);
27
+ return;
28
+ }
29
30
connection.createChannel((err2, channel) => {
31
+ if (err2) {
32
+ Raven.captureException(err2);
33
34
35
36
channel.assertQueue(successQ);
37
channel.assertQueue(jobQ);
0 commit comments