fix: add a better handling in case only worker crashes (CR comments)

This commit is contained in:
Mariana Alanis 2022-06-14 15:31:08 -05:00 committed by Leonardo de Moura
parent 30f3d6f82d
commit e61799a77f

View file

@ -259,7 +259,7 @@ section ServerM
else
-- Worker crashed
fw.errorPendingRequests o (if exitCode = 1 then ErrorCode.workerCrashed else ErrorCode.stackOverflow)
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 in "user's" code"}."
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 in user code"}."
return WorkerEvent.crashed err
loop
let task ← IO.asTask (loop $ ←read) Task.Priority.dedicated