mirror of
https://github.com/LinoSchmidt/StickExporterTX.git
synced 2026-03-21 01:51:15 +01:00
Better error message
This commit is contained in:
@@ -21,7 +21,7 @@ async function openLogFile(filePath:string, rawData:boolean) {
|
||||
let logData:string[]|undefined = undefined;
|
||||
csvParse(data, {}, (err, output:string[]) => {
|
||||
if(err) {
|
||||
logger.errorMSG(`Error parsing csv file: ${err}`);
|
||||
logger.errorMSG(`Error parsing file "${filePath}": ${err}`);
|
||||
logData = [];
|
||||
} else {
|
||||
logData = output;
|
||||
|
||||
Reference in New Issue
Block a user