Daniel Kinzler has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/81231


Change subject: Fix call to non-existing method in error case.
......................................................................

Fix call to non-existing method in error case.

Change-Id: Id85d3182a8aaba53a3c863c12adefe0ec537f387
---
M lib/includes/TypedValueFormatter.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/31/81231/1

diff --git a/lib/includes/TypedValueFormatter.php 
b/lib/includes/TypedValueFormatter.php
index 2bdbe3a..9be9422 100644
--- a/lib/includes/TypedValueFormatter.php
+++ b/lib/includes/TypedValueFormatter.php
@@ -51,7 +51,7 @@
                // in the DataTypes library have been made.
 
                if ( $dataValue->getType() === 'bad' ) {
-                       throw new IllegalValueException( $dataValue->getError() 
);
+                       throw new IllegalValueException( 
$dataValue->getReason() );
                }
 
                $valueFormatters = $dataType->getFormatters();

-- 
To view, visit https://gerrit.wikimedia.org/r/81231
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id85d3182a8aaba53a3c863c12adefe0ec537f387
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: mw1.22-wmf14
Gerrit-Owner: Daniel Kinzler <daniel.kinz...@wikimedia.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to