mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #13900 from Yannig/devel_fix_unicode_parsing_with_error
Allow Ansible to return error with unicode within it.
This commit is contained in:
commit
01e78bd39b
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ class AnsibleError(Exception):
|
||||||
if obj and isinstance(obj, AnsibleBaseYAMLObject):
|
if obj and isinstance(obj, AnsibleBaseYAMLObject):
|
||||||
extended_error = self._get_extended_error()
|
extended_error = self._get_extended_error()
|
||||||
if 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:
|
else:
|
||||||
self.message = 'ERROR! %s' % message
|
self.message = 'ERROR! %s' % message
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue