Add error handling in gulpfile.js