updated gulpfile

Fixed error handling