Follow up r57846: tack on an error code
This commit is contained in:
parent
60660e2af3
commit
9be4e7686c
1 changed files with 2 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
|
||||
<?php
|
||||
|
||||
/*
|
||||
|
|
@ -61,7 +62,7 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase {
|
|||
if (!is_null($params['owner']) && !is_null($params['token'])) {
|
||||
$user = User::newFromName($params['owner'],false);
|
||||
if( !$user->getId() ) {
|
||||
$this->dieUsage( 'Specified user does not exist' );
|
||||
$this->dieUsage( 'Specified user does not exist', 'bad_wlowner' );
|
||||
}
|
||||
$token = $user->getOption('watchlisttoken');
|
||||
if ($token == '' || $token != $params['token']) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue