From c2bff6c7fc912ff1e8c7e87d0a8ee73d30c30396 Mon Sep 17 00:00:00 2001 From: Mattias Rosell Date: Thu, 24 Oct 2024 11:12:04 +0200 Subject: [PATCH] Clarify formatter errors --- htpy/html2htpy.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htpy/html2htpy.py b/htpy/html2htpy.py index b1cf12b..d27c66f 100644 --- a/htpy/html2htpy.py +++ b/htpy/html2htpy.py @@ -180,6 +180,9 @@ def format(self, s: str) -> str: ) if result.returncode == self.error_return_code: _printerr("Black failed to parse the input. The output will be left unformatted.") + _printerr( + "This is likely a bug in html2htpy. Please report this as an issue to htpy: https://github.com/pelme/htpy/issues." + ) return s return result.stdout.decode("utf8") @@ -195,6 +198,9 @@ def format(self, s: str) -> str: ) if result.returncode == self.error_return_code: _printerr("Ruff failed to parse the input. The output will be left unformatted.") + _printerr( + "This is likely a bug in html2htpy. Please report this as an issue to htpy: https://github.com/pelme/htpy/issues." + ) return s return result.stdout.decode("utf8")