Skip to content

Commit

Permalink
NOBUG: minor error log handling fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
NickPhura committed Mar 26, 2019
1 parent 35476d3 commit 15d630c
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 15d630c

Please sign in to comment.