Skip to content

Commit f9a3814

Browse files
carlhoerbergbaelter
authored andcommitted
Update src/amqp-channel.ts
1 parent 1bb9fe6 commit f9a3814

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/amqp-channel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class AMQPChannel {
3232
this.logger?.error(`channel ${this.id} closed: ${reason}`)
3333
// Propagate channel errors to the connection's onerror handler
3434
if (this.id !== 0) { // Don't propagate for connection channel (id=0)
35-
this.connection.onerror(new AMQPError(reason, this.connection))
35+
this.connection.onerror(new AMQPError(`Channel ${this.id} closed: ${reason}`, this.connection))
3636
}
3737
}
3838
}

0 commit comments

Comments
 (0)