From 6ad6b1ab9d29eb56dfeaea905de853015a8aa8ee Mon Sep 17 00:00:00 2001 From: Kristof Vandenbroucke Date: Wed, 20 Nov 2024 15:59:22 +0100 Subject: [PATCH] More messaging in the error handling of `stakeholders-converter` --- .../lib/StakeholdersConversionService.ts | 4 ++-- packages/oslo-converter-stakeholders/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/oslo-converter-stakeholders/lib/StakeholdersConversionService.ts b/packages/oslo-converter-stakeholders/lib/StakeholdersConversionService.ts index d51be81..171f0f1 100644 --- a/packages/oslo-converter-stakeholders/lib/StakeholdersConversionService.ts +++ b/packages/oslo-converter-stakeholders/lib/StakeholdersConversionService.ts @@ -96,9 +96,9 @@ export class StakeholdersConversionService implements IService { editors: Stakeholder[]; }> { const parser = parse({ delimiter: ';', columns: true }); - parser.on('error', (error: unknown) => { + parser.on('error', (error: any) => { this.logger.error( - `[CsvConverterHandler] Unable to convert the provided csv into a stakeholders-file. ${error}`, + `[CsvConverterHandler] Unable to convert the provided csv into a stakeholders-file. ${error} for record ${error?.record}`, ); }); const transformer = new ToJsonTransformer(this.configuration.outputFormat); diff --git a/packages/oslo-converter-stakeholders/package.json b/packages/oslo-converter-stakeholders/package.json index 8cc376b..afea730 100644 --- a/packages/oslo-converter-stakeholders/package.json +++ b/packages/oslo-converter-stakeholders/package.json @@ -1,6 +1,6 @@ { "name": "@oslo-flanders/stakeholders-converter", - "version": "0.0.18-alpha.0", + "version": "0.0.19-alpha.0", "description": "Converts an OSLO stakeholders csv file to a different format", "author": "Digitaal Vlaanderen ", "homepage": "https://github.com/informatievlaanderen/OSLO-UML-Transformer/tree/main/packages/oslo-converter-stakeholders-oslo#readme",