Skip to content

Commit

Permalink
Increase max loops
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchpaulus committed Dec 9, 2024
1 parent 12228cf commit 74be3c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mshell/Evaluator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ MainLoop:
defer file.Close()
}

maxLoops := 15000
maxLoops := 150000
loopCount := 0
state.LoopDepth++

Expand All @@ -1322,7 +1322,7 @@ MainLoop:
}

if loopCount == maxLoops {
return FailWithMessage(fmt.Sprintf("%d:%d: Loop exceeded maximum number of iterations.\n", t.Line, t.Column))
return FailWithMessage(fmt.Sprintf("%d:%d: Loop exceeded maximum number of iterations (%d).\n", t.Line, t.Column, maxLoops))
}

state.LoopDepth--
Expand Down

0 comments on commit 74be3c8

Please sign in to comment.