handle error deploying object