Page MenuHomePhabricator

Improve error handling for using chemistry commands outside the chemistry environment
Closed, ResolvedPublic

Description

If the \ce command is used outside the chemistry mode a reasonable error message should be returned.
Currently, on https://en.wikipedia.org/api/rest_v1/?doc#!/Math/post_media_math_check_type on sees

{
  "type": "https://restbase.org/errors/internal_error",
  "title": "TypeError",
  "method": "POST",
  "detail": "Cannot read property 'name' of undefined",
  "uri": "/texvcinfo"
}

Event Timeline

Physikerwelt raised the priority of this task from to High.
Physikerwelt updated the task description. (Show Details)
Physikerwelt added a project: Mathoid.

Change 268869 had a related patch set uploaded (by Physikerwelt):
Fix problem with error reporting

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

Change 268869 merged by Mobrovac:
Fix problem with error reporting

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

mobrovac assigned this task to Physikerwelt.
mobrovac removed a project: Patch-For-Review.
mobrovac set Security to None.
mobrovac removed subscribers: gerritbot, Aklapper.

Resolving for now, as this is done. I'll deploy Mathoid first thing tomorrow morning PST.