Merge "Add attributes parameter to ShowSearchHitTitle"
[lhc/web/wiklou.git] / includes / api / ApiUsageException.php
index 47902a7..4196add 100644 (file)
@@ -213,7 +213,7 @@ class ApiUsageException extends UsageException implements ILocalizedException {
         * @inheritDoc
         */
        public function getMessageObject() {
-               return $this->status->getMessage();
+               return Status::wrap( $this->status )->getMessage();
        }
 
        /**