From baf509085e9b80c5e9d039e5a90e8814e52afcd4 Mon Sep 17 00:00:00 2001 From: Abhinav-grd Date: Thu, 2 Sep 2021 12:20:27 +0530 Subject: [PATCH] fix new line between error stacks --- src/utils/common/errorUtil.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/common/errorUtil.ts b/src/utils/common/errorUtil.ts index d74a988fd..e5e834319 100644 --- a/src/utils/common/errorUtil.ts +++ b/src/utils/common/errorUtil.ts @@ -94,7 +94,7 @@ export function errorWithContext(originalError: Error, context: string) { const errorWithContext = new Error(context); errorWithContext.stack = errorWithContext.stack.split('\n').slice(2, 4).join('\n') + - '/n' + + '\n' + originalError.stack; return errorWithContext; }