Add error handling to gulpfile.js