validator method, handle failure in gulp example