Add error handling for discounts