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);
errorWithContext.stack =
errorWithContext.stack.split('\n').slice(2, 4).join('\n') +
'/n' +
'\n' +
originalError.stack;
return errorWithContext;
}