handle compilation errors in gulpfile