Skip to content

Commit 0a30f7b

Browse files
committed
Chain new exception with previous one
1 parent dcc0d26 commit 0a30f7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Transport/AmqpExt/AmqpSender.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function send(Envelope $envelope): Envelope
4545
try {
4646
$this->connection->publish($encodedMessage['body'], $encodedMessage['headers']);
4747
} catch (\AMQPException $e) {
48-
throw new TransportException('Current transport was not able to send given message, please try again');
48+
throw new TransportException('Current transport was not able to send given message, please try again', 0, $e);
4949
}
5050

5151
return $envelope;

0 commit comments

Comments
 (0)