From 21886bd31f4e39677c59476e63b6094bdf95bafd Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Thu, 21 Sep 2017 18:06:37 +0200 Subject: [PATCH] Change heading. --- cdist/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cdist/__init__.py b/cdist/__init__.py index 832a0dca..1e2c9255 100644 --- a/cdist/__init__.py +++ b/cdist/__init__.py @@ -109,7 +109,7 @@ class CdistEntityError(Error): def __str__(self): output = [] output.append(self.message) - header = '\nError in ' + self.entity_name + ' processing' + header = "\nError processing " + self.entity_name under_header = '=' * len(header) output.append(header) output.append(under_header) @@ -133,7 +133,8 @@ class CdistObjectError(CdistEntityError): stderr_path = os.path.join(cdist_object.stderr_path, stderr_name) stderr_paths.append((stderr_name, stderr_path, )) - super().__init__('object', params, stderr_paths, subject) + super().__init__("object '{}'".format(cdist_object.name), + params, stderr_paths, subject) class InitialManifestError(CdistEntityError):