diff --git a/addon/components/document-delete-button.js b/addon/components/document-delete-button.js index 87d30bc0..c5cda394 100644 --- a/addon/components/document-delete-button.js +++ b/addon/components/document-delete-button.js @@ -60,7 +60,9 @@ export default class DocumentDeleteButtonComponent extends Component { rejected.forEach((error, index) => { docs[index].rollbackAttributes(); - new ErrorHandler(this, error).notify("alexandria.errors.delete-document"); + new ErrorHandler(this, error.reason).notify( + "alexandria.errors.delete-document", + ); }); if (!rejected.length) {