fix: add a better handling in case only worker crashes

This commit is contained in:
Mariana Alanis 2022-06-13 14:04:22 -05:00 committed by Leonardo de Moura
parent 6b75ca9734
commit b0f9754e0f

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 in user 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"}."
return WorkerEvent.crashed err
loop
let task ← IO.asTask (loop $ ←read) Task.Priority.dedicated