Skip to content

Commit

Permalink
Fix stepper: not display runtime errors (#1458)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziwen510 authored Jul 31, 2023
1 parent 7581ce6 commit 2ee1d29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/runner/sourceRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ function runSubstitution(
options: IOptions
): Promise<Result> {
const steps = getEvaluationSteps(program, context, options.stepLimit)
if (context.errors.length > 0) {
return resolvedErrorPromise
}
const redexedSteps: IStepperPropContents[] = []
for (const step of steps) {
const redex = getRedex(step[0], step[1])
Expand Down

0 comments on commit 2ee1d29

Please sign in to comment.