- if (!User::updatePassword($user['uid'], $password)) {
- throw new RuntimeException(L10n::t('Password update failed. Please try again.'));
+ $this->out(L10n::t('Password changed.'));
+ } catch (\Exception $e) {
+ throw new RuntimeException($e->getMessage(), $e->getCode(), $e);