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

Change subject: Add getPossibleErrors method to FormatSnakValue
......................................................................


Add getPossibleErrors method to FormatSnakValue

Change-Id: Idab013793e67852f00bc7da5c7b40edc2f13ac25
---
M repo/includes/api/FormatSnakValue.php
1 file changed, 10 insertions(+), 0 deletions(-)

Approvals:
  WikidataJenkins: Verified
  Adrian Lang: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/repo/includes/api/FormatSnakValue.php 
b/repo/includes/api/FormatSnakValue.php
index 0610f99..5752a93 100644
--- a/repo/includes/api/FormatSnakValue.php
+++ b/repo/includes/api/FormatSnakValue.php
@@ -160,6 +160,16 @@
        }
 
        /**
+        * @see ApiBase::getPossibleErrors()
+        */
+       public function getPossibleErrors() {
+               return array_merge(
+                       parent::getPossibleErrors(),
+                       array( array( 'code' => 'baddatavalue', 'info' => 
'Failed to decode datavalue' ) )
+               );
+       }
+
+       /**
         * @see ApiBase::getAllowedParams
         *
         * @since 0.1

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Idab013793e67852f00bc7da5c7b40edc2f13ac25
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>
Gerrit-Reviewer: Adrian Lang <[email protected]>
Gerrit-Reviewer: WikidataJenkins <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to