summaryrefslogtreecommitdiff
path: root/pint/formatting.py
diff options
context:
space:
mode:
Diffstat (limited to 'pint/formatting.py')
-rw-r--r--pint/formatting.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pint/formatting.py b/pint/formatting.py
index 37f8064..9dbcc41 100644
--- a/pint/formatting.py
+++ b/pint/formatting.py
@@ -152,7 +152,7 @@ def register_unit_format(name):
def wrapper(func):
if name in _FORMATTERS:
- raise ValueError("format already exists") # or warn instead
+ raise ValueError(f"format {name:!r} already exists") # or warn instead
_FORMATTERS[name] = func
return wrapper