mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Allow Ansible to return error with unicode within it.
Fix for https://github.com/ansible/ansible/issues/13899
This commit is contained in:
committed by
Yannig Perre
parent
ec95f50cb6
commit
e5ea576461
@@ -54,7 +54,7 @@ class AnsibleError(Exception):
|
||||
if obj and isinstance(obj, AnsibleBaseYAMLObject):
|
||||
extended_error = self._get_extended_error()
|
||||
if extended_error:
|
||||
self.message = 'ERROR! %s\n\n%s' % (message, to_str(extended_error))
|
||||
self.message = 'ERROR! %s\n\n%s' % (to_str(message), to_str(extended_error))
|
||||
else:
|
||||
self.message = 'ERROR! %s' % message
|
||||
|
||||
|
||||
Reference in New Issue
Block a user