From 17f4db19ea88aceddb6161fd1180ee65d303b87d Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Mon, 4 Apr 2016 08:19:50 -0400 Subject: [PATCH] adds additional details in exception handling in shell shared module --- lib/ansible/module_utils/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/shell.py b/lib/ansible/module_utils/shell.py index ceb7490e6e..4d73c8db52 100644 --- a/lib/ansible/module_utils/shell.py +++ b/lib/ansible/module_utils/shell.py @@ -177,7 +177,7 @@ class Shell(object): def read(self, response): for regex in self.errors: if regex.search(response): - raise ShellError('%s' % response) + raise ShellError('matched error in response: %s' % response) for regex in self.prompts: match = regex.search(response)