From b5cc656cbe2125e7d9bf8f0afd6c3d0e6ea19e0d Mon Sep 17 00:00:00 2001 From: pranalidhanavade <137780597+pranalidhanavade@users.noreply.github.com> Date: Thu, 22 Feb 2024 19:51:20 +0530 Subject: [PATCH] fix:csv file error handling (#536) Signed-off-by: pranalidhanavade Signed-off-by: bhavanakarwade --- apps/issuance/src/issuance.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/issuance/src/issuance.service.ts b/apps/issuance/src/issuance.service.ts index ec95151e9..64ca9155d 100644 --- a/apps/issuance/src/issuance.service.ts +++ b/apps/issuance/src/issuance.service.ts @@ -911,7 +911,7 @@ const credefError = []; } catch (error) { this.logger.error(`error in validating credentials : ${error.response}`); - throw new RpcException(error.response ? error.response : error); + throw new Error(error.response.message ? error.response.message : error); } finally { // await this.awsService.deleteFile(importFileDetails.fileKey); // this.logger.error(`Deleted uploaded file after processing.`);