Merge "Parser: Add guessSectionNameFromStrippedText() and refactor"
[lhc/web/wiklou.git] / includes / api / ApiUsageException.php
index 17655ec..c200dcb 100644 (file)
@@ -16,7 +16,6 @@
  * http://www.gnu.org/copyleft/gpl.html
  *
  * @file
- * @defgroup API API
  */
 
 /**
@@ -152,7 +151,7 @@ class ApiUsageException extends UsageException implements ILocalizedException {
        }
 
        /**
-        * @returns ApiMessage
+        * @return ApiMessage
         */
        private function getApiMessage() {
                $errors = $this->status->getErrorsByType( 'error' );
@@ -213,7 +212,7 @@ class ApiUsageException extends UsageException implements ILocalizedException {
         * @inheritDoc
         */
        public function getMessageObject() {
-               return $this->status->getMessage();
+               return Status::wrap( $this->status )->getMessage();
        }
 
        /**