Skip to content

Commit

Permalink
Add error message to "Communication with SMS gateway failed"
Browse files Browse the repository at this point in the history
Issue #143
  • Loading branch information
typpo committed Jul 6, 2019
1 parent baf62d5 commit a10f529
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SENDMAIL_TRANSPORT = {
path: '/usr/sbin/sendmail',
};

const EXAMPLE_SMTP_TRANSPORT = {
const SMTP_TRANSPORT = {
// This is a Nodemailer transport. It can either be an SMTP server or a
// well-known service such as Sengrid, Mailgun, Gmail, etc.
// See https://nodemailer.com/transports/ and https://nodemailer.com/smtp/well-known/
Expand All @@ -22,7 +22,7 @@ const EXAMPLE_SMTP_TRANSPORT = {
};

module.exports = {
transport: SENDMAIL_TRANSPORT,
transport: SMTP_TRANSPORT,
mailOptions: {
from: '"Jane Doe" <jane.doe@example.com>',
},
Expand Down
2 changes: 1 addition & 1 deletion server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function textRequestHandler(req, res, number, carrier, region) {
if (err) {
res.send({
success: false,
message: 'Communication with SMS gateway failed.',
message: `Communication with SMS gateway failed. Did you configure mail transport in lib/config.js? Error message: '${err.message}'`,
});
} else {
res.send({ success: true });
Expand Down

0 comments on commit a10f529

Please sign in to comment.