File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed
app/controllers/events/view/tickets Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ export default Controller.extend({
8
8
this . notify . success ( this . l10n . t ( 'Access code has been successfully created.' ) ) ;
9
9
this . transitionToRoute ( 'events.view.tickets.access-codes' ) ;
10
10
} )
11
- . catch ( ( ) => {
12
- this . notify . error ( this . l10n . t ( 'An unexpected error has occured. Access code cannot be created.' ) ) ;
11
+ . catch ( e => {
12
+ console . error ( 'Error while creating access code' , e ) ;
13
+ this . notify . error ( this . l10n . t ( 'An unexpected error has occurred. Access code cannot be created.' ) ) ;
13
14
} ) ;
14
15
}
15
16
}
Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ export default Controller.extend({
8
8
this . notify . success ( this . l10n . t ( 'Access code has been successfully updated.' ) ) ;
9
9
this . transitionToRoute ( 'events.view.tickets.access-codes' ) ;
10
10
} )
11
- . catch ( ( ) => {
12
- this . notify . error ( this . l10n . t ( 'An unexpected error has occured. Access code cannot be created.' ) ) ;
11
+ . catch ( e => {
12
+ console . error ( 'Error while updating access code' , e ) ;
13
+ this . notify . error ( this . l10n . t ( 'An unexpected error has occurred. Access code cannot be created.' ) ) ;
13
14
} ) ;
14
15
}
15
16
}
Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ export default Controller.extend({
8
8
this . notify . success ( this . l10n . t ( 'Discount code has been successfully created.' ) ) ;
9
9
this . transitionToRoute ( 'events.view.tickets.discount-codes' ) ;
10
10
} )
11
- . catch ( ( ) => {
12
- this . notify . error ( this . l10n . t ( 'An unexpected error has occured. Discount code cannot be created.' ) ) ;
11
+ . catch ( e => {
12
+ console . error ( 'Error while creating discount code' , e ) ;
13
+ this . notify . error ( this . l10n . t ( 'An unexpected error has occurred. Discount code cannot be created.' ) ) ;
13
14
} ) ;
14
15
}
15
16
}
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ export default Controller.extend({
8
8
this . notify . success ( this . l10n . t ( 'Discount code has been successfully updated.' ) ) ;
9
9
this . transitionToRoute ( 'events.view.tickets.discount-codes' ) ;
10
10
} )
11
- . catch ( ( ) => {
11
+ . catch ( e => {
12
+ console . error ( 'Error while updating discount code' , e ) ;
12
13
this . notify . error ( this . l10n . t ( 'An unexpected error has occurred. Discount code cannot be updated.' ) ) ;
13
14
} ) ;
14
15
}
You can’t perform that action at this time.
0 commit comments