File tree Expand file tree Collapse file tree 18 files changed +55
-28
lines changed Expand file tree Collapse file tree 18 files changed +55
-28
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ export default class extends Controller {
14
14
id : 'event_copy_succ'
15
15
} ) ;
16
16
} )
17
- . catch ( ( ) => {
17
+ . catch ( e => {
18
+ console . error ( 'Error while copying event' , e ) ;
18
19
this . notify . error ( this . l10n . t ( 'Copying of event failed' ) ,
19
20
{
20
21
id : 'event_copy_fail'
Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
52
52
} ) ;
53
53
this . refreshModel . bind ( this ) ( ) ;
54
54
} )
55
- . catch ( ( ) => {
55
+ . catch ( e => {
56
+ console . error ( 'Error while deleting sponsor' , e ) ;
56
57
this . notify . error ( this . l10n . t ( 'An unexpected error has occurred.' ) ,
57
58
{
58
59
id : 'spons_deleted_error'
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ export default class extends Controller {
71
71
} ) ;
72
72
} )
73
73
. catch ( reason => {
74
+ console ( 'Error while scheduling' , reason ) ;
74
75
this . set ( 'error' , reason ) ;
75
76
this . notify . error ( `Error: ${ reason } ` ) ;
76
77
} ) ;
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ export default class extends Controller {
25
25
. then ( exportJobInfo => {
26
26
this . requestLoop ( exportJobInfo ) ;
27
27
} )
28
- . catch ( ( ) => {
28
+ . catch ( e => {
29
+ console . error ( 'Error while exporting' , e ) ;
29
30
this . set ( 'isLoading' , false ) ;
30
31
this . notify . error ( this . l10n . t ( 'An unexpected error has occurred.' ) ,
31
32
{
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ export default class extends Controller {
22
22
} ) ;
23
23
this . transitionToRoute ( 'events.view.sessions' , this . model . event . id ) ;
24
24
} )
25
- . catch ( ( ) => {
25
+ . catch ( e => {
26
+ console . error ( 'Error while saving session' , e ) ;
26
27
this . notify . error ( this . l10n . t ( 'Oops something went wrong. Please try again' ) ,
27
28
{
28
29
id : 'session_crea_some_error'
@@ -32,7 +33,8 @@ export default class extends Controller {
32
33
this . set ( 'isLoading' , false ) ;
33
34
} ) ;
34
35
} )
35
- . catch ( ( ) => {
36
+ . catch ( e => {
37
+ console . error ( 'Error while saving session' , e ) ;
36
38
this . notify . error ( this . l10n . t ( 'Oops something went wrong. Please try again' ) ,
37
39
{
38
40
id : 'error_unexp_session'
@@ -50,7 +52,8 @@ export default class extends Controller {
50
52
} ) ;
51
53
this . transitionToRoute ( 'events.view.sessions' , this . model . event . id ) ;
52
54
} )
53
- . catch ( ( ) => {
55
+ . catch ( e => {
56
+ console . error ( 'Error while saving session' , e ) ;
54
57
this . notify . error ( this . l10n . t ( 'Oops something went wrong. Please try again' ) ,
55
58
{
56
59
id : 'session_error_wrong'
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ export default class extends Controller {
22
22
} ) ;
23
23
this . transitionToRoute ( 'events.view.sessions' , this . model . event . id ) ;
24
24
} )
25
- . catch ( ( ) => {
25
+ . catch ( e => {
26
+ console . error ( 'Error while saving session' , e ) ;
26
27
this . notify . error ( this . l10n . t ( 'Oops something went wrong. Please try again' ) ,
27
28
{
28
29
id : 'session_edit_error'
@@ -32,7 +33,8 @@ export default class extends Controller {
32
33
this . set ( 'isLoading' , false ) ;
33
34
} ) ;
34
35
} )
35
- . catch ( ( ) => {
36
+ . catch ( e => {
37
+ console . error ( 'Error while saving session' , e ) ;
36
38
this . notify . error ( this . l10n . t ( 'Oops something went wrong. Please try again' ) ,
37
39
{
38
40
id : 'session_edit_wrong'
@@ -51,7 +53,8 @@ export default class extends Controller {
51
53
} ) ;
52
54
this . transitionToRoute ( 'events.view.sessions' , this . model . event . id ) ;
53
55
} )
54
- . catch ( ( ) => {
56
+ . catch ( e => {
57
+ console . error ( 'Error while saving session' , e ) ;
55
58
this . notify . error ( this . l10n . t ( 'Oops something went wrong. Please try again' ) ,
56
59
{
57
60
id : 'session_edit_error'
Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ export default class extends Controller {
19
19
id : 'event_deleted_succ'
20
20
} ) ;
21
21
} )
22
- . catch ( ( ) => {
22
+ . catch ( e => {
23
+ console . error ( 'Error while deleting event' , e ) ;
23
24
this . notify . error ( this . l10n . t ( 'An unexpected error has occurred.' ) ,
24
25
{
25
26
id : 'event_deleted_error'
@@ -71,6 +72,7 @@ export default class extends Controller {
71
72
} ) ;
72
73
this . notify . success ( this . l10n . t ( 'Owner Role Invite sent successfully.' ) ) ;
73
74
} catch ( error ) {
75
+ console . error ( 'Error while sending role Invite' , error , error . message ) ;
74
76
this . notify . error ( error . message ) ;
75
77
}
76
78
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ export default class extends Controller {
14
14
. then ( exportJobInfo => {
15
15
this . requestLoop ( exportJobInfo ) ;
16
16
} )
17
- . catch ( ( ) => {
17
+ . catch ( e => {
18
+ console . error ( 'Error while exporting' , e ) ;
18
19
this . set ( 'isLoading' , false ) ;
19
20
this . notify . error ( this . l10n . t ( 'An unexpected error has occurred.' ) ) ;
20
21
} ) ;
@@ -35,7 +36,8 @@ export default class extends Controller {
35
36
this . notify . error ( this . l10n . t ( 'CSV Export has failed.' ) ) ;
36
37
}
37
38
} )
38
- . catch ( ( ) => {
39
+ . catch ( e => {
40
+ console . error ( 'Error while exporting CSV' , e ) ;
39
41
this . notify . error ( this . l10n . t ( 'CSV Export has failed.' ) ) ;
40
42
} )
41
43
. finally ( ( ) => {
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ export default class extends Controller {
25
25
this . notify . success ( this . l10n . t ( 'Your session has been saved' ) ) ;
26
26
this . transitionToRoute ( 'events.view.speakers' , this . model . event . id ) ;
27
27
} catch ( e ) {
28
+ console . error ( 'Error while saving session' , e ) ;
28
29
this . notify . error ( this . l10n . t ( 'Oops something went wrong. Please try again' ) ) ;
29
30
}
30
31
}
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ export default class extends Controller {
14
14
this . notify . success ( this . l10n . t ( 'Speaker details have been saved' ) ) ;
15
15
this . transitionToRoute ( 'events.view.speakers' ) ;
16
16
} )
17
- . catch ( ( ) => {
17
+ . catch ( e => {
18
+ console . error ( 'Error while saving speaker details' , e ) ;
18
19
this . notify . error ( this . l10n . t ( 'Oops something went wrong. Please try again' ) ) ;
19
20
} )
20
21
. finally ( ( ) => {
You can’t perform that action at this time.
0 commit comments