jenkins-bot has submitted this change and it was merged.

Change subject: fix exception message in ChangeOpReference
......................................................................


fix exception message in ChangeOpReference

Change-Id: I7d567584740a0d4947c5c17eca29217f476b68c3
---
M repo/includes/changeop/ChangeOpReference.php
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Aude: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/repo/includes/changeop/ChangeOpReference.php 
b/repo/includes/changeop/ChangeOpReference.php
index 86e9942..65cd15b 100644
--- a/repo/includes/changeop/ChangeOpReference.php
+++ b/repo/includes/changeop/ChangeOpReference.php
@@ -160,7 +160,8 @@
         */
        protected function addReference( References $references, Summary 
$summary = null ) {
                if ( $references->hasReference( $this->reference ) ) {
-                       throw new ChangeOpException( "Claim has already a 
reference with hash $this->reference->getHash()" );
+                       $hash = $this->reference->getHash();
+                       throw new ChangeOpException( "Claim has already a 
reference with hash $hash" );
                }
                $references->addReference( $this->reference );
                $this->updateSummary( $summary, 'add' );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I7d567584740a0d4947c5c17eca29217f476b68c3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: mw1.22-wmf14
Gerrit-Owner: Aude <[email protected]>
Gerrit-Reviewer: Aude <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to