AnotherLadsgroup has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/372148 )
Change subject: Fix dieWithError or dieError usages in GetEntities
......................................................................
Fix dieWithError or dieError usages in GetEntities
This takes some parts of I0d2a471 out of the patch
Change-Id: I191dfbfd9fcda3939a4b7139581a5c31707db38b
---
M repo/includes/Api/GetEntities.php
1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase
refs/changes/48/372148/1
diff --git a/repo/includes/Api/GetEntities.php
b/repo/includes/Api/GetEntities.php
index 15d0308..c645a76 100644
--- a/repo/includes/Api/GetEntities.php
+++ b/repo/includes/Api/GetEntities.php
@@ -120,8 +120,8 @@
$params = $this->extractRequestParams();
if ( !isset( $params['ids'] ) && ( empty( $params['sites'] ) ||
empty( $params['titles'] ) ) ) {
- $this->errorReporter->dieError(
- 'Either provide the item "ids" or pairs of
"sites" and "titles" for corresponding pages',
+ $this->errorReporter->dieWithError(
+ 'wikibase-api-illegal-entity-selector',
'param-missing'
);
}
@@ -172,7 +172,7 @@
$ids[] = $this->idParser->parse( $id );
} catch ( EntityIdParsingException $e ) {
$this->errorReporter->dieWithError(
- [ 'no-such-entity', $id ],
+ [ 'wikibase-api-no-such-entity', $id ],
'no-such-entity',
0,
[ 'id' => $id ]
--
To view, visit https://gerrit.wikimedia.org/r/372148
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I191dfbfd9fcda3939a4b7139581a5c31707db38b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: AnotherLadsgroup <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits