mirror of https://github.com/calzoneman/sync.git
Fix exception handler exception
This commit is contained in:
parent
d09d7ad64e
commit
f8e4a3fc34
|
@ -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 () {
|
||||
|
|
Loading…
Reference in New Issue