Looks like we don't account for the API returning an error in ve.ce.MWTransclusionNode.prototype.generateContents. Unconditionally response.visualeditor.content is accessed.
API has a clear path both for dieUsage() and result === success.
Version: unspecified
Severity: normal