diff --git a/app/controllers/orders/new.js b/app/controllers/orders/new.js index df7cf40c0cc..5872804bc3b 100644 --- a/app/controllers/orders/new.js +++ b/app/controllers/orders/new.js @@ -42,6 +42,7 @@ export default class NewController extends Controller { } }) .catch(e => { + console.error('Error while saving new order', e); order.set('status', 'initializing'); this.notify.error(this.l10n.t(` ${e} Oops something went wrong. Please try again`), { @@ -53,6 +54,7 @@ export default class NewController extends Controller { }); } catch (e) { this.set('isLoading', false); + console.error('Error while in saving new order', e); this.notify.error(this.l10n.t('Oops something went wrong. Please try again'), { id: 'some_error' diff --git a/app/controllers/orders/view.js b/app/controllers/orders/view.js index acf77229352..7f44cf0b35e 100644 --- a/app/controllers/orders/view.js +++ b/app/controllers/orders/view.js @@ -61,7 +61,7 @@ export default class ViewController extends Controller { document.body.removeChild(anchor); }) .catch(e => { - console.warn(e); + console.error('Error while downloading tickets', e); this.notify.error(this.l10n.t('An unexpected Error occurred'), { id: 'unexpected_occur' diff --git a/app/controllers/public/cfs/edit-session.js b/app/controllers/public/cfs/edit-session.js index bdd0a501e72..02749579a34 100644 --- a/app/controllers/public/cfs/edit-session.js +++ b/app/controllers/public/cfs/edit-session.js @@ -15,7 +15,8 @@ export default class EditSessionController extends Controller { }); this.transitionToRoute('public.cfs'); }) - .catch(() => { + .catch(e => { + console.error('Error while editing session', e); this.notify.error(this.l10n.t('Oops something went wrong. Please try again'), { id: 'sess_error' diff --git a/app/controllers/public/cfs/edit-speaker.js b/app/controllers/public/cfs/edit-speaker.js index 6b83dda97e0..364b78f8b8e 100644 --- a/app/controllers/public/cfs/edit-speaker.js +++ b/app/controllers/public/cfs/edit-speaker.js @@ -15,7 +15,8 @@ export default class EditSpeakerController extends Controller { }); this.transitionToRoute('public.cfs.index'); }) - .catch(() => { + .catch(e => { + console.error('Error while editing speaker', e); this.notify.error(this.l10n.t('Oops something went wrong. Please try again'), { id: 'some_error' diff --git a/app/controllers/public/cfs/new-session.js b/app/controllers/public/cfs/new-session.js index cb31f05231f..3b71341c86f 100644 --- a/app/controllers/public/cfs/new-session.js +++ b/app/controllers/public/cfs/new-session.js @@ -16,6 +16,7 @@ export default class NewSessionController extends Controller { }); this.transitionToRoute('public.cfs.index'); } catch (e) { + console.error('Error while saving new session', e); this.notify.error(this.l10n.t('Oops something went wrong. Please try again')); } this.set('isLoading', false); diff --git a/app/controllers/public/cfs/new-speaker.js b/app/controllers/public/cfs/new-speaker.js index c9c889848ac..78d07aa84ac 100644 --- a/app/controllers/public/cfs/new-speaker.js +++ b/app/controllers/public/cfs/new-speaker.js @@ -15,7 +15,8 @@ export default class NewSpeakerController extends Controller { }); this.transitionToRoute('public.cfs.index'); }) - .catch(() => { + .catch(e => { + console.error('Error while saving new speaker', e); this.notify.error(this.l10n.t('Oops something went wrong. Please try again')); }) .finally(() => { diff --git a/app/mixins/notifications.js b/app/mixins/notifications.js index 7da6609dadb..74893a894c7 100644 --- a/app/mixins/notifications.js +++ b/app/mixins/notifications.js @@ -25,7 +25,8 @@ export default Mixin.create({ .then(() => { this.notify.success(this.l10n.t('Marked all as Read successfully')); }) - .catch(() => { + .catch(e => { + console.error('Error while marking all notifications as read', e); this.notify.error(this.l10n.t('An unexpected error occurred.')); }); }