From aeef351629ec2e0944482aa3314cd3e5c870f22c Mon Sep 17 00:00:00 2001 From: Matthew Irish Date: Tue, 24 Jul 2018 23:16:03 -0500 Subject: [PATCH] e.errors not e.error (#4990) --- ui/app/components/identity/item-details.js | 2 +- ui/app/controllers/vault/cluster/access/identity/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/app/components/identity/item-details.js b/ui/app/components/identity/item-details.js index eafc9fb5d8..fc06e97467 100644 --- a/ui/app/components/identity/item-details.js +++ b/ui/app/components/identity/item-details.js @@ -16,7 +16,7 @@ export default Ember.Component.extend({ }) .catch(e => { this.get('flashMessages').success( - `There was a problem enabling the entity: ${model.id} - ${e.error.join(' ') || e.message}` + `There was a problem enabling the entity: ${model.id} - ${e.errors.join(' ') || e.message}` ); }); }, diff --git a/ui/app/controllers/vault/cluster/access/identity/index.js b/ui/app/controllers/vault/cluster/access/identity/index.js index 0bfe797cff..88f71bbf2f 100644 --- a/ui/app/controllers/vault/cluster/access/identity/index.js +++ b/ui/app/controllers/vault/cluster/access/identity/index.js @@ -18,7 +18,7 @@ export default Ember.Controller.extend(ListController, { }) .catch(e => { this.get('flashMessages').success( - `There was a problem deleting ${type}: ${id} - ${e.error.join(' ') || e.message}` + `There was a problem deleting ${type}: ${id} - ${e.errors.join(' ') || e.message}` ); }); }, @@ -36,7 +36,7 @@ export default Ember.Controller.extend(ListController, { }) .catch(e => { this.get('flashMessages').success( - `There was a problem ${action[1]} ${type}: ${id} - ${e.error.join(' ') || e.message}` + `There was a problem ${action[1]} ${type}: ${id} - ${e.errors.join(' ') || e.message}` ); }); },