Add better error handling to invalid carts