Im also having same issue looking for a solution to display a error message to the Admin who creating a record
My case is checking the duplication entry with few combination while saving a record. was able to achieve the check but unable to throw proper error to the admin
tried few option, but this stops the execution in local.
if(false) {
throw strapi.errors.badRequest(‘Duplicate Data’);
}