Fixed error message description

master
Jim Heising 2016-12-26 15:42:34 -08:00
parent d70128aaf0
commit bc3ee52222
1 changed files with 2 additions and 2 deletions

View File

@ -113,10 +113,10 @@ function processRequest(req, res) {
proxyRequest.on('error', function (err) {
if (err.code === "ENOTFOUND") {
return writeResponse(res, 502, "host cannot be found.")
return writeResponse(res, 502, "Host for " + url.format(remoteURL) + " cannot be found.")
}
else {
console.log("Proxy Request Error (" + remoteURL + "): " + err.toString());
console.log("Proxy Request Error (" + url.format(remoteURL) + "): " + err.toString());
return writeResponse(res, 500);
}