Improve some logger error messages.

This commit is contained in:
softsimon
2020-10-15 11:12:33 +07:00
parent 86c654f22f
commit 472b1d35c2
4 changed files with 3 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ class FiatConversion {
private updateCurrency() {
request('https://api.opennode.co/v1/rates', { json: true }, (err, res, body) => {
if (err) { return logger.err(err); }
if (err) { return logger.err('Error updating currency from OpenNode: ' + err); }
if (body && body.data) {
this.tickers = body.data;
}