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:
parent
f5bcd38380
commit
17f4db19ea
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue