Author: van.de.bugger
Description:
If a function written with help from Validator issues a error (non fatal one) there are two problems:
- Error message is not visually distinct from normal text (no color or other highlighting is applied).
- Function `#iferror' does not recognize function failure. For example:
{{ #iferror: {{ #subpagecount: Page | format = list }}
<!-- Never get here. --> |
<!-- Always get here. --> |
}}
Function #subpagecount' (implemented in extension SubPageList) does not have parameter format' so the result will include error message "format is not a valid parameter." (wording is not exact). However, `#iferror' fails to detect the error.
Both problems can be solved by enclosing error message generated by Validator into element span' with class error'.
Version: unspecified
Severity: normal