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

           Summary: using api to de-flag a revision not already flagged
                    gives very cryptic error message
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: Normal
         Component: FlaggedRevs
        AssignedTo: [email protected]
        ReportedBy: [email protected]


If I try to de-flag (set flag_accuracy to 0) on a page that is not currently
flagged, from the api, I get the following result:

<?xml version="1.0"?><api><error code="unknownerror" info="Unknown error:
``$1&#039;&#039;" /></api>

The expected result would be either:

<?xml version="1.0"?><api><review result="Success" /></api>

As that is what is returned if you try to set the flag_accuracy to a level that
the revision already is set to for the other accuracy levels. Or perhaps a more
descriptive error message than: Unknown error: ``$1''

Thanks,
Bawolff


-- 
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