Slight tweak to urlRetrieve error handler

This commit is contained in:
calzoneman 2014-12-04 00:42:25 -06:00
parent 5cbdb47eb1
commit 918b865a9b
1 changed files with 3 additions and 1 deletions

View File

@ -52,8 +52,10 @@ var urlRetrieve = function (transport, options, callback) {
Logger.errlog.log(err.stack);
Logger.errlog.log("urlRetrieve failed: " + err);
Logger.errlog.log("Request was: " + options.host + options.path);
setImmediate(function () {
callback(503, "");
});
});
d.run(function () {
var req = transport.request(options, function (res) {
var buffer = "";