Page MenuHomePhabricator

Error messages are double-escaped
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Make a Python implementation fail due to inconsistent use of tabs and spaces as part of indentation.
  • View error details (look under 'Errors').

What happens?:
The error message is double-escaped.

Screenshot 2026-03-25 at 1.56.20 PM.png (638×964 px, 104 KB)

What should have happened instead?:
The error message should have rendered the angle brackets and quotes correctly.

Event Timeline

Do you mind giving some more reproduction steps? (what code or composition to use)
Or an example function?

Sorry, the cause of the error wasn't what I remembered it as being; I noticed this with incorrectly indented Python code.

DSmit-WMF changed the task status from Open to In Progress.Mar 31 2026, 10:45 AM
DSmit-WMF claimed this task.

Change #1265387 had a related patch set uploaded (by Daphne Smit; author: Daphne Smit):

[mediawiki/extensions/WikiLambda@master] FunctionMetadataDialog: Fixed error summary text double escaping

https://gerrit.wikimedia.org/r/1265387

Change #1265387 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] FunctionMetadataDialog: Fixed error summary text double escaping

https://gerrit.wikimedia.org/r/1265387