[misc] keep up with the error signature of dockerode/docker-modem
https://github.com/apocas/docker-modem/blob/v2.1.1/lib/modem.js#L296
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user