mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
be consistent about conversion to_str
This commit is contained in:
@@ -56,7 +56,7 @@ class AnsibleError(Exception):
|
|||||||
if extended_error:
|
if extended_error:
|
||||||
self.message = 'ERROR! %s\n\n%s' % (to_str(message), to_str(extended_error))
|
self.message = 'ERROR! %s\n\n%s' % (to_str(message), to_str(extended_error))
|
||||||
else:
|
else:
|
||||||
self.message = 'ERROR! %s' % message
|
self.message = 'ERROR! %s' % to_str(message)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.message
|
return self.message
|
||||||
|
|||||||
Reference in New Issue
Block a user