Yurik has uploaded a new change for review.
https://gerrit.wikimedia.org/r/275556
Change subject: exception-fix
......................................................................
exception-fix
Change-Id: I6b9e7ad526209ffc20899fae7a73480dc3d41ffe
---
M includes/Tag/TagHandler.php
1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Kartographer
refs/changes/56/275556/1
diff --git a/includes/Tag/TagHandler.php b/includes/Tag/TagHandler.php
index 2e75022..2c07839 100644
--- a/includes/Tag/TagHandler.php
+++ b/includes/Tag/TagHandler.php
@@ -9,7 +9,7 @@
namespace Kartographer\Tag;
-use Exception;
+use MWException;
use FormatJson;
use Html;
use Kartographer\SimpleStyleSanitizer;
@@ -350,6 +350,7 @@
/**
* @return string
+ * @throws MWException
*/
private function reportError() {
$this->parser->getOutput()->setExtensionData(
'kartographer_broken', true );
@@ -357,7 +358,7 @@
$this->status->getErrorsByType( 'warning' )
);
if ( !count( $errors ) ) {
- throw new Exception( __METHOD__ , '(): attempt to
report error when none took place' );
+ throw new MWException( __METHOD__ . '(): attempt to
report error when none took place' );
}
$message = count( $errors ) > 1 ?
'kartographer-error-context-multi'
: 'kartographer-error-context';
--
To view, visit https://gerrit.wikimedia.org/r/275556
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6b9e7ad526209ffc20899fae7a73480dc3d41ffe
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Kartographer
Gerrit-Branch: master
Gerrit-Owner: Yurik <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits