Skip to content

Commit

Permalink
Merge pull request #202 from NickPhura/master
Browse files Browse the repository at this point in the history
NOBUG: minor error log handling fix.
  • Loading branch information
NickPhura authored Mar 26, 2019
2 parents 35476d3 + 15d630c commit fed9164
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/helpers/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ exports.getApplicationByFilenumber = function(accessToken, clFile) {
function(err, res, body) {
if (err || (res && res.statusCode !== 200)) {
defaultLog.error('TTLS API ResponseCode:', err == null ? res.statusCode : err);
if (!err && res && res.statusCode) {
err = {};
err.statusCode = res.statusCode;
}
reject(err);
} else {
try {
Expand Down

0 comments on commit fed9164

Please sign in to comment.