Error handling for gerrit failures is added

Change-Id: I250a2b7c811f5a3c9d9c0bcb85e7350bc7ca4bba
Merge "Error handling for gerrit failures is added"