action=parse nosuchsection error info does not refer to the supplied content or revid
Open, LowPublic

Description

https://en.wikipedia.org/w/api.php?action=parse&text=Blah&section=100

"error": {
        "code": "nosuchsection",
        "info": "There is no section 100 in API.",
}

The error info should refer to the content supplied in text and not the default value for page (API). Similarly,

https://en.wikipedia.org/w/api.php?action=parse&oldid=123456&section=100

"error": {
       "code": "nosuchsection",
       "info": "There is no section 100 in Basic training.",
}

Here the error message should refer to the supplied revid.

MER-C created this task.Feb 26 2018, 3:25 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 26 2018, 3:25 PM
Anomie triaged this task as Low priority.Feb 26 2018, 8:49 PM
Anomie moved this task from Unsorted to Needs Code on the MediaWiki-API board.