Skip to content

Commit 069fcb1

Browse files
committed
Log symbol and mts for CurrencyConversionDataFindingError
1 parent 46596f1 commit 069fcb1

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • workers/loc.api/sync/currency.converter

workers/loc.api/sync/currency.converter/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,9 @@ class CurrencyConverter {
10311031
)
10321032

10331033
if (!Number.isFinite(price)) {
1034-
throw new CurrencyConversionDataFindingError()
1034+
throw new CurrencyConversionDataFindingError(
1035+
{ symbol: reqSymb, mts }
1036+
)
10351037
}
10361038

10371039
return price
@@ -1082,7 +1084,9 @@ class CurrencyConverter {
10821084
)
10831085
}
10841086

1085-
throw new CurrencyConversionDataFindingError()
1087+
throw new CurrencyConversionDataFindingError(
1088+
{ symbol: reqSymb, mts: end }
1089+
)
10861090
}
10871091

10881092
async convertManyByCandles (data, convSchema) {

0 commit comments

Comments
 (0)