mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
handle EPIPE errors in CompileController
This commit is contained in:
parent
f6fddf2944
commit
22480f1a52
1 changed files with 4 additions and 0 deletions
|
@ -55,6 +55,10 @@ module.exports = CompileController = {
|
||||||
} else if (error instanceof Errors.FilesOutOfSyncError) {
|
} else if (error instanceof Errors.FilesOutOfSyncError) {
|
||||||
code = 409 // Http 409 Conflict
|
code = 409 // Http 409 Conflict
|
||||||
status = 'retry'
|
status = 'retry'
|
||||||
|
} else if (error && error.code === 'EPIPE') {
|
||||||
|
// docker returns EPIPE when shutting down
|
||||||
|
code = 503 // send 503 Unavailable response
|
||||||
|
status = 'unavailable'
|
||||||
} else if (error != null ? error.terminated : undefined) {
|
} else if (error != null ? error.terminated : undefined) {
|
||||||
status = 'terminated'
|
status = 'terminated'
|
||||||
} else if (error != null ? error.validate : undefined) {
|
} else if (error != null ? error.validate : undefined) {
|
||||||
|
|
Loading…
Reference in a new issue