contributte / rabbitmq

🐰 RabbitMQ (AMQP, STOMP, MQTT) using BunnyPHP for Nette Framework (@nette).
https://contributte.org/packages/contributte/rabbitmq.html
MIT License
24 stars 25 forks source link

Better error message for consumer command #48

Closed patrickkusebauch closed 3 years ago

patrickkusebauch commented 3 years ago

The previous version assumes that the only possible reason for the exception is that the consumer does not exist.

Just by cursory a look, this is already not the case - you can have the exception in the case the callback is not callable.

Also, this is "future-proofing" for other possible reasons you might not be able to create the consumer.

paveljanda commented 3 years ago

Thanks