Errors fail the deploy script.

(cherry picked from commit e337a31c30e2922e8c838281a384c819805b0cd5)