Closed
Bug 736183
Opened 13 years ago
Closed 11 years ago
Kuma: make kumascript error presentation more useful
Categories
(developer.mozilla.org Graveyard :: Editing, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: lorchard, Unassigned)
References
Details
Errors in kumascript processing are shown on document view pages. But, they presentation is not so great. We should improve the design and UI of that.
Reporter | ||
Comment 1•13 years ago
|
||
For example, it would be nice to link to or somehow show within the rendered document where errors occur.
And, it would be nice if it weren't so ughly.
Reporter | ||
Comment 2•13 years ago
|
||
Some more thinking out loud. There are 3 kinds of errors to expect from Kumascript, and here are ideas for each:
* DocumentParsingError
This is a syntax error in parsing macros in a wiki document - eg. things like {{ )( }} The error contains the character offset at which the error occurred. It might be nice to take the original document source, find that character offset. Then, display the line where the error was found, highlight it, and maybe include the line before and after for context.
* TemplateLoadingError
This is an error in loading a template to evaluate a macro. Usually it's because the template was not found - either because the macro misspelled it, or because it's a template we haven't migrated yet. Might be nice to render a loading error with an invitation and link to create a new template, at least for people who have access to do so (see bug 731649)
* TemplateExecutionError
This is an error found during the execution of a template. Syntax errors, exceptions, etc. Here, it would be nice to offer a link to edit the offending template. There's also a bit of context about the error, but it still kind of stinks. Might be nice to improve that too.
Reporter | ||
Comment 3•13 years ago
|
||
Oh also, as for the error log box itself:
* Hide behind a disclosure triangle by default. Include the message "There were errors on this page", but require a click to reveal them. Maybe cookie the hide/show status so it persists between page refreshes.
* Maybe hide errors altogether for visitors who aren't logged in?
Reporter | ||
Comment 4•13 years ago
|
||
Errors are *fairly* useful right now. Going to unilaterally punt this to post-July
Assignee | ||
Updated•12 years ago
|
Version: Kuma → unspecified
Assignee | ||
Updated•12 years ago
|
Component: Docs Platform → Editing
Reporter | ||
Comment 5•11 years ago
|
||
This bug is vague and also vaguely done. File additional bugs for specific kumascript error improvements.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•