Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 03b1a11

Browse files
committed
chore: Write meaningful exception message
1 parent 1be34ce commit 03b1a11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Messenger/Bridge/Amqp/Transport/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ static function (): bool {
518518
return false;
519519
},
520520
static function () {
521-
throw new TransportException('Confirm calls back with nack.');
521+
throw new TransportException('Message publication failed due to a negative acknowledgment (nack) from the broker.');
522522
}
523523
);
524524
}

0 commit comments

Comments
 (0)