fix new line between error stacks
This commit is contained in:
parent
7ec132b39f
commit
baf509085e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue