aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/Diagnostics.py
diff options
context:
space:
mode:
Diffstat (limited to 'Python/pywarpx/Diagnostics.py')
-rw-r--r--Python/pywarpx/Diagnostics.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Python/pywarpx/Diagnostics.py b/Python/pywarpx/Diagnostics.py
index 5ed359b1c..408ce6d14 100644
--- a/Python/pywarpx/Diagnostics.py
+++ b/Python/pywarpx/Diagnostics.py
@@ -17,7 +17,10 @@ class Diagnostic(Bucket):
self._localsetattr(name, value)
else:
if name in self.argvattrs:
- assert value == self.argvattrs[name], Exception(f'Diagnostic attributes not consistent for {self.instancename}')
+ assert value == self.argvattrs[name], \
+ Exception(f'Diagnostic attributes not consistent for '
+ f'"{self.instancename}": '
+ f'"{value}" != "{self.argvattrs[name]}"')
self.argvattrs[name] = value
def __setattr__(self, name, value):