fix: add a better handling in case only worker crashes
This commit is contained in:
parent
6b75ca9734
commit
b0f9754e0f
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue