Actually update when an operation fails and remove debug log statement