From 234b15831e2006aa370c450c3455377dd85084f7 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Thu, 2 Jan 2014 22:38:12 -0500 Subject: [PATCH] Fix a potential error issue with get-info's domain --- lib/get-info.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/get-info.js b/lib/get-info.js index 6eed6dd6..5603cc23 100644 --- a/lib/get-info.js +++ b/lib/get-info.js @@ -23,7 +23,9 @@ var urlRetrieve = function (transport, options, callback) { // This should cut down on needing to restart the server var d = domain.create(); d.on("error", function (err) { - Logger.errlog.log(err.trace()); + if (typeof err.trace === "function") { + Logger.errlog.log(err.trace()); + } Logger.errlog.log("urlRetrieve failed: " + err); Logger.errlog.log("Request was: " + options.host + options.path); callback(503, err);