We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9b84d1 commit a2d0e83Copy full SHA for a2d0e83
src/app.ts
@@ -191,10 +191,15 @@ async function main(): Promise<void> {
191
const diagnosticReports: DiagnosticReport[] = customDiagnostic.processDiagnosticInformation();
192
193
if (argv.dex != null) {
194
- const reportHandler = new ExcelReportProcessor({
195
- outputFilePath: argv.dex,
196
- });
197
- reportHandler.generateReportDocument(customDiagnostic);
+ try {
+ const reportHandler = new ExcelReportProcessor({
+ outputFilePath: argv.dex,
+ });
198
+ reportHandler.generateReportDocument(customDiagnostic);
199
+ } catch (dexError: any) {
200
+ logErrorToFile(dexError);
201
+ console.error(chalk.red('Misslyckades att skriva till excelfilen!'));
202
+ }
203
}
204
205
/**
0 commit comments