summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/components/settings/settingBody.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/client/components/settings/settingBody.js b/client/components/settings/settingBody.js
index e2d0383f..5b015918 100644
--- a/client/components/settings/settingBody.js
+++ b/client/components/settings/settingBody.js
@@ -128,11 +128,14 @@ BlazeComponent.extendComponent({
sendSMTPTestEmail() {
Meteor.call('sendSMTPTestEmail', (err, ret) => {
if (!err && ret) { /* eslint-disable no-console */
- console.log('Success:', ret.message, ret.email);
- alert('Success');
+ const message = `${TAPi18n.__(ret.message)}: ${ret.email}`;
+ console.log(message);
+ alert(message);
} else {
- console.log('Error: Sending test email', err);
- alert(err);
+ const reason = err.reason || '';
+ const message = `${TAPi18n.__(err.error)}\n${reason}`;
+ console.log(message, err);
+ alert(message);
} /* eslint-enable no-console */
});
},