aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/changePassword.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/changePassword.php')
-rw-r--r--maintenance/changePassword.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/maintenance/changePassword.php b/maintenance/changePassword.php
index 9fa66324f5a1..d7db3212dc60 100644
--- a/maintenance/changePassword.php
+++ b/maintenance/changePassword.php
@@ -46,10 +46,10 @@ class ChangePassword extends Maintenance {
} elseif ( $this->hasOption( "userid" ) ) {
$user = User::newFromId( $this->getOption( 'userid' ) );
} else {
- $this->error( "A \"user\" or \"userid\" must be set to change the password for", true );
+ $this->fatalError( "A \"user\" or \"userid\" must be set to change the password for" );
}
if ( !$user || !$user->getId() ) {
- $this->error( "No such user: " . $this->getOption( 'user' ), true );
+ $this->fatalError( "No such user: " . $this->getOption( 'user' ) );
}
$password = $this->getOption( 'password' );
try {
@@ -64,7 +64,7 @@ class ChangePassword extends Maintenance {
$user->saveSettings();
$this->output( "Password set for " . $user->getName() . "\n" );
} catch ( PasswordError $pwe ) {
- $this->error( $pwe->getText(), true );
+ $this->fatalError( $pwe->getText() );
}
}
}