private void PatchProperty(PropertyUpdate propertyUpdate, Product productToPatch) { try { propertyUpdate.PatchProperty(productToPatch); } catch (ArgumentException) { IsSuccesful = false; Error propertyError = new Error() { Message = "The given value does not match the expected type for property \"" + propertyUpdate.Property + "\". This most likely happened because a string was supplied instead." }; Logger.Warn("Update Attempt, could not patch property: {property}", propertyUpdate.Property); Logger.Warn(propertyError.Message); Errors.Add(propertyError); } }