diff --git a/app/controllers/orders/pending.js b/app/controllers/orders/pending.js index 5ce16df1a34..bf7795f559b 100644 --- a/app/controllers/orders/pending.js +++ b/app/controllers/orders/pending.js @@ -130,10 +130,17 @@ export default Controller.extend({ }) .catch(e => { console.warn(e); - this.notify.error(this.l10n.t('An unexpected error has occurred'), - { - id: 'unexpected_error_occur' - }); + if ('errors' in e) { + this.notify.error(this.l10n.tVar(e.errors[0].detail), + { + id: 'unexpected_error_occur' + }); + } else { + this.notify.error(this.l10n.tVar(e), + { + id: 'unexpected_error_occur' + }); + } }) .finally(() => { this.set('isLoading', false);