exposes api error on save in user notification

This commit is contained in:
Seyi Adebajo 2018-06-18 14:54:23 -07:00
parent d5dfb38a84
commit 09c0cb3a50

View File

@ -270,8 +270,8 @@ export default class DatasetComplianceContainer extends Component {
try {
await request;
notify(NotificationEvent.success, { content: successUpdating });
} catch (e) {
notify(NotificationEvent.error, { content: failedUpdating });
} catch ({ message }) {
notify(NotificationEvent.error, { content: `${failedUpdating} ${message}` });
}
return request;