This approach works with Strapi version 4.13.3
throw new utils.errors.ApplicationError(‘Custom error message’);
Upgrade your Strapi version and it’ll start working
This approach works with Strapi version 4.13.3
throw new utils.errors.ApplicationError(‘Custom error message’);
Upgrade your Strapi version and it’ll start working