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 authored and GitHub committed 2020-04-03 14:04:06 +02:00
commit 44f30d6c2e
2 files changed
+4 -8

No files matched your search

+3 -3
View File
@@ -202,9 +202,9 @@ describe('DockerRunner', function() {
}
if (firstTime) {
firstTime = false
return callback(
new Error('HTTP code is 500 which indicates error: server error')
)
const error = new Error('(HTTP code 500) server error - ...')
error.statusCode = 500
return callback(error)
} else {
return callback(null, this.output)
}