mirror of https://github.com/calzoneman/sync.git
Fix a potential error issue with get-info's domain
This commit is contained in:
parent
8b383e0bdb
commit
234b15831e
|
@ -23,7 +23,9 @@ 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) {
|
||||||
|
if (typeof err.trace === "function") {
|
||||||
Logger.errlog.log(err.trace());
|
Logger.errlog.log(err.trace());
|
||||||
|
}
|
||||||
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 New Issue