From eafa9397f5c3a1edb802ecfa2c3abd71d4dd51ee Mon Sep 17 00:00:00 2001 From: Mackenzie Grimes - NOAA Affiliate Date: Tue, 19 Nov 2024 14:00:48 -0700 Subject: [PATCH] improve error message --- python/idsse_common/idsse/common/rabbitmq_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/idsse_common/idsse/common/rabbitmq_utils.py b/python/idsse_common/idsse/common/rabbitmq_utils.py index e0a3178..7558959 100644 --- a/python/idsse_common/idsse/common/rabbitmq_utils.py +++ b/python/idsse_common/idsse/common/rabbitmq_utils.py @@ -458,7 +458,8 @@ def __init__( self.connection = conn_params.connection self.channel = conn_params else: - raise ValueError('Publisher expects RabbitMQ params (Conn) or existing Channel to run setup') + raise ValueError('RabbitMQ params (Conn) or existing Channel required to create' + + f'Publisher thread. Unexpected type: {type(conn_params)}') # if delivery is mandatory there must be a queue attach to the exchange if self._exch.mandatory: