mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(settings): log exception when test email fails
Signed-off-by: Abhinav Ohri <abhinavohri13@gmail.com>
This commit is contained in:
parent
babab821a7
commit
980c243132
1 changed files with 1 additions and 0 deletions
|
|
@ -147,6 +147,7 @@ class MailSettingsController extends Controller {
|
|||
return new DataResponse();
|
||||
} catch (\Exception $e) {
|
||||
$this->config->setAppValue('core', 'emailTestSuccessful', '0');
|
||||
$this->logger->error('Failed sending test email: ' . $e->getMessage(), ['exception' => $e]);
|
||||
return new DataResponse($this->l10n->t('A problem occurred while sending the email. Please revise your settings. (Error: %s)', [$e->getMessage()]), Http::STATUS_BAD_REQUEST);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue