Page MenuHomePhabricator

Generic type that doesn't return a type leads to hard to understand error message
Open, MediumPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

(state at this point per screenshot here:

and as type.png (778×1 px, 103 KB)

  • click on Publish
  • click on Publish in the modal again

What happens?:
[ZNKdca9v7JG1ZjMPSZyOeAAAABI] Exception caught: Call to a member function warning() on null

What should have happened instead?:
The error message should be a bit more user friendly, e.g. "The type of an object has to be a type, but here a Boolean was given." or even "Type error: expected Type, actual Boolean"

To be honest, I don't know how much more user friendly that really is, but a bit.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):