From 74be3c8e5df1aeb0493427607dc274a6c72050ca Mon Sep 17 00:00:00 2001 From: Mitchell Paulus Date: Mon, 9 Dec 2024 13:01:51 -0600 Subject: [PATCH] Increase max loops --- mshell/Evaluator.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mshell/Evaluator.go b/mshell/Evaluator.go index 4370416..c30b610 100644 --- a/mshell/Evaluator.go +++ b/mshell/Evaluator.go @@ -1298,7 +1298,7 @@ MainLoop: defer file.Close() } - maxLoops := 15000 + maxLoops := 150000 loopCount := 0 state.LoopDepth++ @@ -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--