Commit afe09693 authored by Leo Iannacone's avatar Leo Iannacone

return if error occours

parent 0e6593f7
...@@ -10,6 +10,7 @@ Tail.prototype.watchEvent = function (e) { ...@@ -10,6 +10,7 @@ Tail.prototype.watchEvent = function (e) {
return fs.stat(this.filename, function (err, stats) { return fs.stat(this.filename, function (err, stats) {
if (err) { if (err) {
_this.emit('error', err); _this.emit('error', err);
return;
} }
if (stats.size < _this.pos) { if (stats.size < _this.pos) {
_this.pos = stats.size; _this.pos = stats.size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment