proxy router too many containers error fix

parent f3bb41d0
......@@ -45,9 +45,9 @@ ProxyRouter.prototype.lookup = function(req, res, userID, isWebsocket, path, nex
return;
} else if (err.error === 'too many containers') {
components.evalHtmlTemplate("maxContainers.html", {
pods: pods
pods: err.pods
}, function(err, errorHtml) {
repl.status(503).send(errorHtml)
res.status(503).send(errorHtml)
})
} else {
logger.error(`error starting container ${repl.podName}: ${stringify(err)}`)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment