Skip to content

Commit

Permalink
Merge pull request #6 from dflynn15/phantom-errors
Browse files Browse the repository at this point in the history
Better error handling for phantom run.
  • Loading branch information
dflynn15 committed Oct 1, 2014
2 parents bb19d20 + 7bbca5a commit 7eadcfd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ module.exports = function (options) {
filePaths.push(file.path);
callback(null, file);
}, function (callback) {
compileRunner(true);
try {
compileRunner(true);
} catch(error) {
callback(new gutil.PluginError('gulp-jasmine-phantom', error));
}
}
);
}
Expand Down

0 comments on commit 7eadcfd

Please sign in to comment.