September 14, 2015
Gulp – catch and log less errors
To work efficiently its indispensable to get detailed error messages. If you simply pipe the gulp-less task to your stream you will receive a error message – but your whole gulp task will crash.
1 |
s = s.pipe(less()); |
what we get:
1 2 3 4 |
/blog-theCodeCampus/blog/node_modules/gulp-less/node_modules/accord/node_modules/when/lib/decorators/unhandledRejection.js:80 throw e; ^ Error: Unrecognised input. Possibly missing opening '{' in file /blog-theCodeCampus/blog/less/_footer.less line no. 54 |