changed error message from string to variable

This commit is contained in:
bill bittner 2017-06-27 23:33:14 -07:00
parent 455125b337
commit ab9bf98c10

View file

@ -8,7 +8,7 @@ module.exports = {
postToAnalytics(action, originalUrl, ip, 'success');
res.status(307).render('noClaims');
} else if (error.response) {
postToAnalytics(action, originalUrl, ip, 'error.response.data.error.messsage');
postToAnalytics(action, originalUrl, ip, error.response.data.error.messsage);
res.status(error.response.status).send(error.response.data.error.message);
} else if (error.code === 'ECONNREFUSED') {
postToAnalytics(action, originalUrl, ip, 'Connection refused. The daemon may not be running.');