fix: display marker on error

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
This commit is contained in:
Emmanuel Ferdman 2025-05-21 17:15:45 -07:00
parent 9f5018e89e
commit 999c292482
No known key found for this signature in database
GPG key ID: 0CF84597DD87A9FF

View file

@ -109,7 +109,7 @@ class RelativeIndenter:
"""
if self.marker in text:
raise ValueError("Text already contains the outdent marker: {self.marker}")
raise ValueError(f"Text already contains the outdent marker: {self.marker}")
lines = text.splitlines(keepends=True)