diff --git a/src/services/export/index.ts b/src/services/export/index.ts index 2c6e9f037..e9538d8c6 100644 --- a/src/services/export/index.ts +++ b/src/services/export/index.ts @@ -818,6 +818,7 @@ class ExportService { } async getExportRecord(folder?: string): Promise { + let recordFile: string; try { if (!folder) { folder = getData(LS_KEYS.EXPORT)?.folder; @@ -829,12 +830,12 @@ class ExportService { if (!exportFolderExists) { return null; } - const recordFile = await this.electronAPIs.getExportRecord( + recordFile = await this.electronAPIs.getExportRecord( `${folder}/${EXPORT_RECORD_FILE_NAME}` ); return JSON.parse(recordFile); } catch (e) { - logError(e, 'export Record JSON parsing failed '); + logError(e, 'export Record JSON parsing failed ', { recordFile }); throw e; } }