feat: publish fatal progress after worker crash

This commit is contained in:
Sebastian Ullrich 2022-06-19 18:25:57 +02:00 committed by Leonardo de Moura
parent c213e0e880
commit 17c2e6d529

View file

@ -260,6 +260,7 @@ section ServerM
-- Worker crashed
fw.errorPendingRequests o (if exitCode = 1 then ErrorCode.workerExited else ErrorCode.workerCrashed)
s!"Server process for {fw.doc.meta.uri} crashed, {if exitCode = 1 then "see stderr for exception" else "likely due to a stack overflow or a bug"}."
publishProgressAtPos fw.doc.meta 0 o (kind := LeanFileProgressKind.fatalError)
return WorkerEvent.crashed err
loop
let task ← IO.asTask (loop $ ←read) Task.Priority.dedicated