https://bugzilla.wikimedia.org/show_bug.cgi?id=29246

Roan Kattouw <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Roan Kattouw <[email protected]> 2011-06-02 14:48:29 
UTC ---
This is caused by the following sequence of events:

* Article::doEdit() fails, and returns a Status object with failure info
* EditPage::internalAttemptSave() checks for $status->isOK(), and returns
AS_END if $status signifies an error. The Status object is discarded
* API doesn't handle AS_END, falls through to returning an unknown error.
There's a comment here about needing to propagate the Status object

I guess the best way to fix this would be to refactor internalAttemptSave() to
return a Status object instead of one of 30+ error codes.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to