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);
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue