Aude has uploaded a new change for review.
https://gerrit.wikimedia.org/r/65969
Change subject: catch RuntimeException for unknown data type id
......................................................................
catch RuntimeException for unknown data type id
This will occur, for example, in clients trying to access a claim with unknown
data type
(e.g. one moved from experimental to non-experimental in repo, while client is
on different/older
version of the extensions).
Change-Id: I02b317eafba25a5ac491931a09d4cfdaa94bb073
---
M lib/includes/SnakFormatter.php
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase
refs/changes/69/65969/1
diff --git a/lib/includes/SnakFormatter.php b/lib/includes/SnakFormatter.php
index 1c29ab6..4b81fc9 100644
--- a/lib/includes/SnakFormatter.php
+++ b/lib/includes/SnakFormatter.php
@@ -99,6 +99,8 @@
// @todo nicer error handling!
wfDebugLog( __CLASS__, __METHOD__ . ': Property '
. $snak->getPropertyId()->getPrefixedId() . '
not found.' );
+ } catch ( RuntimeException $e ) {
+ wfDebugLog( __CLASS__, __METHOD__ . ': unknown DataType
id for $dataTypeId' );
}
return '';
--
To view, visit https://gerrit.wikimedia.org/r/65969
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I02b317eafba25a5ac491931a09d4cfdaa94bb073
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Aude <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits