diff --git a/index.js b/index.js index 77b661d..f97c576 100644 --- a/index.js +++ b/index.js @@ -9,6 +9,10 @@ function doIt (file, opts, cb) { opts = opts || {}; parse(file, (err, data) => { + if (err) { + return cb(err); + } + if (opts.reporters) { let d = dataByTime(data.streams, opts.interval || 5); data.reports = {};