Catch request errors

This commit is contained in:
wltsmrz
2013-09-06 14:27:07 -07:00
parent abec5386a6
commit a501400caa

View File

@@ -31,6 +31,7 @@ util.inherits(Request, EventEmitter);
Request.prototype.request = function (remote) {
if (!this.requested) {
this.requested = true;
this.on('error', new Function);
this.remote.request(this);
this.emit('request', remote);
}