summaryrefslogtreecommitdiff
path: root/lib/ansible/errors
diff options
context:
space:
mode:
authorJames Cammarata <jimi@sngx.net>2016-01-19 12:09:04 -0500
committerJames Cammarata <jimi@sngx.net>2016-01-19 12:10:39 -0500
commitb1223746cdb75827093e1d96115047aa0b5f343f (patch)
tree82f4100d9ce03b114fa407955b389a01d8567b14 /lib/ansible/errors
parenta7dd425620e0a40911908a41e1b378183ae690f4 (diff)
downloadansible-b1223746cdb75827093e1d96115047aa0b5f343f.tar.gz
Relocate use of ERROR to display class, to avoid doubling up
Diffstat (limited to 'lib/ansible/errors')
-rw-r--r--lib/ansible/errors/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/errors/__init__.py b/lib/ansible/errors/__init__.py
index ffe6c9013d..faf7c33416 100644
--- a/lib/ansible/errors/__init__.py
+++ b/lib/ansible/errors/__init__.py
@@ -54,9 +54,9 @@ 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' % (to_str(message), to_str(extended_error))
+ self.message = '%s\n\n%s' % (to_str(message), to_str(extended_error))
else:
- self.message = 'ERROR! %s' % to_str(message)
+ self.message = '%s' % to_str(message)
def __str__(self):
return self.message