Page MenuHomePhabricator

Show the user the error in the meta-data dialog if the perform test API throws one, rather than a blank entry
Open, LowPublic

Description

[Split off from T358089]

If the system thinks there's an error (in this case, wikilambda-performtest-error-invalidimplementation, but other errors exist), it will return as such, rather than a nice ZObject, e.g.:

{
    "error": {
        "code": "wikilambda-performtest-error-invalidimplementation",
        "info": "Perform test error: '{\"Z1K1\":\"Z2\",\"Z2K1\":{\"Z1K1\":\"Z6\",\"Z6K1\":\"Z11233\"},\"Z2K2\":{\"Z1K1\":\"Z14\",\"Z14K1\":\"Z801\",\"Z14K3\":{\"Z1K1\":\"Z16\",\"Z16K1\":{\"Z1K1\":\"Z61\",\"Z61K1\":\"python\"},\"Z16K2\":\"def Z801(Z801K1):\\n\\treturn Z801K1 # a ' isn't a valid implementation.",
        "*": "…"
    },
    "servedby": "deployment-mediawiki11"
}

We should handle this case.