Merge pull request #159 from overleaf/jpa-fix-docker-modem-error-scheme

[misc] keep up with the error signature of dockerode/docker-modem
This commit is contained in:
Jakob Ackermann
2020-04-03 14:04:06 +02:00
committed by GitHub
2 changed files with 4 additions and 8 deletions

View File

@@ -99,11 +99,7 @@ module.exports = DockerRunner = {
error,
output
) {
if (
__guard__(error != null ? error.message : undefined, x =>
x.match('HTTP code is 500')
)
) {
if (error && error.statusCode === 500) {
logger.log(
{ err: error, project_id },
'error running container so destroying and retrying'