Browse Source

avoid unhandled rejection in edge case

fix-133-memory-crash
Dan Janosik 6 years ago
parent
commit
c22c3d3124
No known key found for this signature in database GPG Key ID: C6F8CE9FFDB2CED2
  1. 2
      app/utils.js

2
app/utils.js

@ -334,7 +334,7 @@ function refreshExchangeRates() {
console.log("Unable to get exchange rate data");
}
} else {
console.log(`Error 39r7h2390fgewfgds: ${error}, StatusCode: ${response.statusCode}, Response: ${JSON.stringify(response)}`);
console.log(`Error 39r7h2390fgewfgds: ${error}, StatusCode: ${(response != null) ? response.statusCode : ""}, Response: ${JSON.stringify(response)}`);
}
});
}

Loading…
Cancel
Save