Change heading.
This commit is contained in:
parent
ca047c7956
commit
21886bd31f
1 changed files with 3 additions and 2 deletions
|
@ -109,7 +109,7 @@ class CdistEntityError(Error):
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
output = []
|
output = []
|
||||||
output.append(self.message)
|
output.append(self.message)
|
||||||
header = '\nError in ' + self.entity_name + ' processing'
|
header = "\nError processing " + self.entity_name
|
||||||
under_header = '=' * len(header)
|
under_header = '=' * len(header)
|
||||||
output.append(header)
|
output.append(header)
|
||||||
output.append(under_header)
|
output.append(under_header)
|
||||||
|
@ -133,7 +133,8 @@ class CdistObjectError(CdistEntityError):
|
||||||
stderr_path = os.path.join(cdist_object.stderr_path,
|
stderr_path = os.path.join(cdist_object.stderr_path,
|
||||||
stderr_name)
|
stderr_name)
|
||||||
stderr_paths.append((stderr_name, stderr_path, ))
|
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):
|
class InitialManifestError(CdistEntityError):
|
||||||
|
|
Loading…
Reference in a new issue