mirror of
https://github.com/strapi/strapi.git
synced 2025-10-29 00:49:49 +00:00
fix: error message improvements (#16949)
This commit is contained in:
parent
38cafa5385
commit
f72a62be05
@ -53,6 +53,7 @@ const EditView = ({ allowedActions, isSingleType, goBack, slug, id, origin, user
|
||||
toggleNotification({
|
||||
type: 'warning',
|
||||
message: location.state.error,
|
||||
timeout: 5000,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@ -169,7 +169,7 @@ module.exports = {
|
||||
// and model has unique or relational fields
|
||||
if (isEmpty(body) && hasProhibitedCloningFields(model)) {
|
||||
throw new ApplicationError(
|
||||
'Failed to clone entity. There are prohibited fields to be manually addressed.'
|
||||
'Entity could not be cloned as it has unique and/or relational fields. Please edit those fields manually and save to complete the cloning.'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user