fix new line between error stacks

This commit is contained in:
Abhinav-grd 2021-09-02 12:20:27 +05:30
parent 7ec132b39f
commit baf509085e

View file

@ -94,7 +94,7 @@ export function errorWithContext(originalError: Error, context: string) {
const errorWithContext = new Error(context); const errorWithContext = new Error(context);
errorWithContext.stack = errorWithContext.stack =
errorWithContext.stack.split('\n').slice(2, 4).join('\n') + errorWithContext.stack.split('\n').slice(2, 4).join('\n') +
'/n' + '\n' +
originalError.stack; originalError.stack;
return errorWithContext; return errorWithContext;
} }