mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +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):
|
def read(self, response):
|
||||||
for regex in self.errors:
|
for regex in self.errors:
|
||||||
if regex.search(response):
|
if regex.search(response):
|
||||||
raise ShellError('%s' % response)
|
raise ShellError('matched error in response: %s' % response)
|
||||||
|
|
||||||
for regex in self.prompts:
|
for regex in self.prompts:
|
||||||
match = regex.search(response)
|
match = regex.search(response)
|
||||||
|
|||||||
Reference in New Issue
Block a user