mirror of https://github.com/calzoneman/sync.git
Slight tweak to urlRetrieve error handler
This commit is contained in:
parent
5cbdb47eb1
commit
918b865a9b
|
@ -52,8 +52,10 @@ var urlRetrieve = function (transport, options, callback) {
|
||||||
Logger.errlog.log(err.stack);
|
Logger.errlog.log(err.stack);
|
||||||
Logger.errlog.log("urlRetrieve failed: " + err);
|
Logger.errlog.log("urlRetrieve failed: " + err);
|
||||||
Logger.errlog.log("Request was: " + options.host + options.path);
|
Logger.errlog.log("Request was: " + options.host + options.path);
|
||||||
|
setImmediate(function () {
|
||||||
callback(503, "");
|
callback(503, "");
|
||||||
});
|
});
|
||||||
|
});
|
||||||
d.run(function () {
|
d.run(function () {
|
||||||
var req = transport.request(options, function (res) {
|
var req = transport.request(options, function (res) {
|
||||||
var buffer = "";
|
var buffer = "";
|
||||||
|
|
Loading…
Reference in New Issue