Fix urlRetrieve error handler
This commit is contained in:
parent
db5b407635
commit
379c121350
|
@ -24,7 +24,7 @@ var urlRetrieve = function (transport, options, callback) {
|
||||||
// This should cut down on needing to restart the server
|
// This should cut down on needing to restart the server
|
||||||
var d = domain.create();
|
var d = domain.create();
|
||||||
d.on("error", function (err) {
|
d.on("error", function (err) {
|
||||||
Logger.errlog.log(err.trace());
|
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);
|
||||||
callback(503, err);
|
callback(503, err);
|
||||||
|
|
Loading…
Reference in a new issue