fix: error message improvements (#16949)

This commit is contained in:
Josh 2023-06-08 09:59:10 +01:00
parent 38cafa5385
commit f72a62be05
2 changed files with 2 additions and 1 deletions

View File

@ -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,
}); });
} }
}); });

View File

@ -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.'
); );
} }