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"
}
Physikerwelt updated the task description. (Show Details)
Physikerwelt raised the priority of this task from to High.
Physikerwelt added a project: Mathoid.
Physikerwelt added subscribers: Physikerwelt, mobrovac.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 5 2016, 7:58 PM

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 removed a project: Patch-For-Review.
mobrovac set Security to None.
mobrovac closed this task as Resolved.
mobrovac removed subscribers: gerritbot, Aklapper.

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