diff --git a/lib/torblocker.js b/lib/torblocker.js index 9fee4706..f7b324c4 100644 --- a/lib/torblocker.js +++ b/lib/torblocker.js @@ -24,7 +24,10 @@ function retrieveIPs(cb) { var d = domain.create(); d.on("error", function (err) { - Logger.errlog.log(err.trace()); + if (err.trace) + Logger.errlog.log(err.trace()); + else + Logger.errlog.log(err); }); d.run(function () {