itoys / node.tail

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Errors on empty files

matthaak opened this issue · comments

When passed an existing, but empty file, the following is thrown in Node v4.2.2 on windows

fs.js:1657
throw new Error('start must be <= end');
^

Error: start must be <= end
at new ReadStream (fs.js:1657:13)
at Object.fs.createReadStream (fs.js:1612:10)
at readFile (Z:\Dropbox\GitHub\snow-runner\node_modules\node.tail\lib\tail.js:23:23)
at Z:\Dropbox\GitHub\snow-runner\node_modules\node.tail\lib\tail.js:72:7
at FSReqWrap.oncomplete (fs.js:82:15)