mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-27 01:48:24 +00:00
exposes api error on save in user notification
This commit is contained in:
parent
d5dfb38a84
commit
09c0cb3a50
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user