From acdc241bc09193c9a49af758525f5060010d304d Mon Sep 17 00:00:00 2001 From: Siddharth9890 Date: Thu, 12 Sep 2024 18:22:11 +0530 Subject: [PATCH] fix: added types.ts to eslintignore --- .eslintignore | 1 + src/helpers/custom-error.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintignore b/.eslintignore index b2bc187..bf97c72 100644 --- a/.eslintignore +++ b/.eslintignore @@ -9,3 +9,4 @@ release.config.js scripts/* gatewaySdk/ src/testing.ts +src/common/types.ts \ No newline at end of file diff --git a/src/helpers/custom-error.ts b/src/helpers/custom-error.ts index b6ec6a8..9d25c27 100644 --- a/src/helpers/custom-error.ts +++ b/src/helpers/custom-error.ts @@ -24,6 +24,6 @@ function captureError(message: any) { if (message.hasOwnProperty('error')) { return message.error; } - + return message.error.message; }