Update parser.js

This commit is contained in:
Aleksandr Statciuk 2021-12-12 09:05:55 +03:00
parent b016b84160
commit 325c7362ff
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ parser.parseLogs = async function (filepath) {
parser.parseNumber = function (string) { parser.parseNumber = function (string) {
const parsed = parseInt(string) const parsed = parseInt(string)
if (isNaN(parsed)) { if (isNaN(parsed)) {
logger.error('Not a number') throw new Error('scripts/core/parser.js:parseNumber() Input value is not a number')
} }
return parsed return parsed