Skip to content

Commit

Permalink
Better error handling for phantom run.
Browse files Browse the repository at this point in the history
  • Loading branch information
dflynn15 committed Oct 1, 2014
1 parent 75935a3 commit 7bbca5a
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 @@ -108,7 +108,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 7bbca5a

Please sign in to comment.