Skip to content

Commit

Permalink
improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mackenzie-grimes-noaa committed Nov 19, 2024
1 parent 37828aa commit eafa939
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/idsse_common/idsse/common/rabbitmq_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit eafa939

Please sign in to comment.