Skip to content

Commit b832856

Browse files
committed
v2.1.3
1 parent ab13370 commit b832856

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/lean_dojo/interaction/Lean4Repl.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@ end TacticRepl
248248

249249

250250
private def loop (m : TypeType) [Monad m] [MonadLift IO m] [MonadError m] (handler : Request → m Response) : m Unit := do
251-
while true do
252-
let line ← (← IO.getStdin).getLine
253-
if line.trim == "exit" then
251+
while true do
252+
let line := (← (← IO.getStdin).getLine).trim
253+
if line == "exit" then
254254
break
255255
match (Json.parse line) with
256256
| .error err => throwError s!"[fatal] failed to parse JSON {err}"

src/lean_dojo/interaction/dojo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def _check_alive(self) -> None:
392392
if exit_code == 137:
393393
raise DojoCrashError("OOM")
394394
else:
395-
raise DojoCrashError(f"Unknown exit code: {exit_code}")
395+
raise DojoCrashError(f"Unexpected exit code: {exit_code}")
396396

397397
def _read_next_line(self) -> Tuple[str, str]:
398398
"""Read the next line from `self.proc`.

0 commit comments

Comments
 (0)