Better error message

This commit is contained in:
2022-11-24 08:11:37 +01:00
parent 377e26c124
commit 13706757ee

View File

@@ -21,7 +21,7 @@ async function openLogFile(filePath:string, rawData:boolean) {
let logData:string[]|undefined = undefined; let logData:string[]|undefined = undefined;
csvParse(data, {}, (err, output:string[]) => { csvParse(data, {}, (err, output:string[]) => {
if(err) { if(err) {
logger.errorMSG(`Error parsing csv file: ${err}`); logger.errorMSG(`Error parsing file "${filePath}": ${err}`);
logData = []; logData = [];
} else { } else {
logData = output; logData = output;