web: error page: make Github issue TODO message more straight forward

We reword the TODO message. We put two newlines before and after the
triple dashes to avoid Markdown title formatting.

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
This commit is contained in:
Théo Lebrun 2024-09-30 12:21:14 +02:00
parent 46254c4a90
commit 4aac8fc8dc

View file

@ -64,9 +64,10 @@ def generate_error_details(req, resp, title, details):
f"Error details: {details}\n"
def get_github_issue_link(details: str):
body = "TODO: add information on how you reached the error here. Please make sure details below are correct and what you want to share.\n" + \
"---\n" + \
details
body = ("TODO: add information on how you reached the error here and " +
"validate the details below.\n\n" +
"---\n\n" +
details)
return ADD_ISSUE_LINK + "?body=" + parse.quote(body)