Skip to content

Commit

Permalink
oops fix stack trimming
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Donham committed Jul 3, 2024
1 parent a2866c1 commit 9860f29
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/server/src/executeCell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ function rewriteStack(stack: undefined | string): undefined | string {
return stack;
}

const i = stack.indexOf("\n at ESModulesRunner.runViteModule");
const i = stack.indexOf("Runner.runViteModule");
if (i !== -1) {
return stack.substring(0, i);
const stack2 = stack.substring(0, i);
const i2 = stack2.lastIndexOf("\n", i);
return stack2.substring(0, i2);
} else {
return stack;
}
Expand Down

0 comments on commit 9860f29

Please sign in to comment.