1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

adds additional details in exception handling in shell shared module

This commit is contained in:
Peter Sprygada 2016-04-04 08:19:50 -04:00
parent f5bcd38380
commit 17f4db19ea

View file

@ -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)