Adds error handling to gulp build. WIP