Create error object on update errors