API: Fix profiling errors caused by calling wfProfileClose() from dieUsage()
This commit is contained in:
parent
393f3041dd
commit
cd910c6544
1 changed files with 1 additions and 0 deletions
|
|
@ -635,6 +635,7 @@ abstract class ApiBase {
|
|||
* Call main module's error handler
|
||||
*/
|
||||
public function dieUsage($description, $errorCode, $httpRespCode = 0) {
|
||||
wfProfileClose();
|
||||
throw new UsageException($description, $this->encodeParamName($errorCode), $httpRespCode);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue