From 5a134d406bedeccef64ee9f9a8536b375d12a033 Mon Sep 17 00:00:00 2001 From: Philip Carinhas Date: Sun, 7 Dec 2014 10:01:49 -0600 Subject: [PATCH] Improve error message --- lib/ansible/modules/extras/messaging/rabbitmq_plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/messaging/rabbitmq_plugin.py b/lib/ansible/modules/extras/messaging/rabbitmq_plugin.py index bc71bcec51..8d3a942801 100644 --- a/lib/ansible/modules/extras/messaging/rabbitmq_plugin.py +++ b/lib/ansible/modules/extras/messaging/rabbitmq_plugin.py @@ -72,7 +72,8 @@ class RabbitMqPlugins(object): bin_path = os.path.join(module.params['prefix'], 'sbin') else: # No such path exists. - raise Exception("No binary folder in RabbitMQ prefix") + raise Exception("No binary folder in prefix %s" % + module.params['prefix']) self._rabbitmq_plugins = bin_path + "/rabbitmq-plugins"