Fix incorrect error reporting for put based deploy