refactor: add error messages for Rabbit issues

This commit is contained in:
Paul Makles
2025-04-29 15:36:55 +01:00
committed by Zomatree
parent a4246f39e4
commit 343b90b9af
+6 -2
View File
@@ -93,8 +93,12 @@ pub async fn web() -> Rocket<Build> {
&config.rabbit.password,
))
.await
.unwrap();
let channel = connection.open_channel(None).await.unwrap();
.expect("Failed to connect to RabbitMQ");
let channel = connection
.open_channel(None)
.await
.expect("Failed to open RabbitMQ channel");
channel
.exchange_declare(