Subversion Repositories SmartDukaan

Rev

Rev 2752 | Rev 3126 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2752 Rev 2949
Line 55... Line 55...
55
                UserContextService.Client userClient = userServiceClient.getClient();
55
                UserContextService.Client userClient = userServiceClient.getClient();
56
                userClient.removeCoupon(cartId);
56
                userClient.removeCoupon(cartId);
57
                DataLogger.logData(EventType.COUPON_REMOVED, session.getId(), userinfo.getUserId(), userinfo.getEmail(), couponCode);
57
                DataLogger.logData(EventType.COUPON_REMOVED, session.getId(), userinfo.getUserId(), userinfo.getEmail(), couponCode);
58
            }
58
            }
59
        } catch (PromotionException e) {
59
        } catch (PromotionException e) {
-
 
60
            log.error("Unable to apply or remove coupon", e);
60
            addActionError(e.getMessage());
61
            addActionError(e.getMessage());
61
        } catch (Exception e) {
62
        } catch (Exception e) {
62
            e.printStackTrace();
63
            log.error("Unable to apply or remove coupon", e);
63
        }
64
        }
64
        return "redirect";
65
        return "redirect";
65
    }
66
    }
66
}
67
}
67
68