Error handling for cart lookup