Make errors from ArticleSave hooks propagate to the interface
authorCatrope <roan.kattouw@gmail.com>
Thu, 10 May 2012 04:48:16 +0000 (21:48 -0700)
committerCatrope <roan.kattouw@gmail.com>
Thu, 10 May 2012 19:10:25 +0000 (12:10 -0700)
commitb1e0daa428ebc241b228b3ca44cee46e15f2b61c
treec32a5922f12893cf6a0d8c7162b94629ccdcf695
parentf1a37c161874bd63fa8ebfae282aad8f620167e7
Make errors from ArticleSave hooks propagate to the interface

Aborting a save from the ArticleSave hook and putting an error in
$status didn't actually propagate the error message to the user, but
instead displayed the edit conflict page (!). Fix this so that if we get
an unrecognized error from ArticleSave, we treat it as an extension
error and render it rather than going into conflict mode.

Similarly, make the API attempt to render the error through
dieUsageMsg() like it already does for AS_END

Change-Id: Iccf78480240d0c7ed321438c8190472805957099
includes/EditPage.php
includes/api/ApiEditPage.php