Output some error when require-dir tasks fails

It could be useful to see the results of the require tasks especially if there is an error.
master
Alex 2014-09-09 15:57:43 +02:00
parent a4ddfcae4b
commit ef591cdc1a
1 changed files with 1 additions and 1 deletions

View File

@ -186,4 +186,4 @@ gulp.task('pagespeed', pagespeed.bind(null, {
}));
// Load custom tasks from the `tasks` directory
try { require('require-dir')('tasks'); } catch (err) {}
try { require('require-dir')('tasks'); } catch (err) { console.error(err); }