Skip to content

Commit

Permalink
add error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebecca Murphey committed Dec 1, 2015
1 parent 07a312b commit 8274a68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Expand Up @@ -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 = {};
Expand Down

0 comments on commit 8274a68

Please sign in to comment.