mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 00:03:10 +00:00
adds additional details in exception handling in shell shared module
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user