https://bugzilla.wikimedia.org/show_bug.cgi?id=41042
--- Comment #5 from Amgine <[email protected]> 2012-10-16 15:02:13 UTC --- I interpreted * code: missingtitle ** info: The page you specified doesn't exist. from https://www.mediawiki.org/wiki/API:Parsing_wikitext#Possible_errors_2 as not at all misleading, but directly and simply stating an error is generated when a page specified does not exist. The same language is used at https://www.mediawiki.org/wiki/API:Parse#Errors_Codes, and it is listed as a standard error at https://www.mediawiki.org/wiki/API:Errors_and_warnings#Standard_error_messages. This would be the least surprising interpretation, in my opinion. It is *not* the same behavior as API displays in some other actions, however. In &action=query a missing page is simply reported as missing, not an error code. https://en.wikinews.org/w/api.php?action=query&titles=DoesntExist&prop=info&format=xml According to [[mw:API:Errors_and_warnings]] "If something goes wrong in an API request, an error or a warning will be thrown. Warnings are thrown for non-fatal conditions such as invalid parameters, whereas errors are only thrown for fatal conditions." My personal opinion is there should be an explicit report for both no sections && missing page; the former should throw a warning (setting sections property count=0), the latter might throw either a warning (setting page property missing=';') or an error. A section count property could resolve the former as an enhancement. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
