Index: trunk/phase3/includes/api/ApiBase.php |
— | — | @@ -635,6 +635,7 @@ |
636 | 636 | * Call main module's error handler |
637 | 637 | */ |
638 | 638 | public function dieUsage($description, $errorCode, $httpRespCode = 0) { |
| 639 | + wfProfileClose(); |
639 | 640 | throw new UsageException($description, $this->encodeParamName($errorCode), $httpRespCode); |
640 | 641 | } |
641 | 642 | |