mirror of
https://github.com/strapi/strapi.git
synced 2025-10-30 17:37:26 +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({
|
toggleNotification({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
message: location.state.error,
|
message: location.state.error,
|
||||||
|
timeout: 5000,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -169,7 +169,7 @@ module.exports = {
|
|||||||
// and model has unique or relational fields
|
// and model has unique or relational fields
|
||||||
if (isEmpty(body) && hasProhibitedCloningFields(model)) {
|
if (isEmpty(body) && hasProhibitedCloningFields(model)) {
|
||||||
throw new ApplicationError(
|
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