Throw ApplicationError in lifecycles.ts doesn't show error in admin panel #20343
Labels
issue: bug
Issue reporting a bug
severity: low
If the issue only affects a very niche base of users and an easily implemented workaround can solve
source: core:database
Source is core/database package
source: core:strapi
Source is core/strapi package
status: pending reproduction
Waiting for free time to reproduce the issue, or more information
Bug report
Required System information
Environment: development
OS: linux-x64
Strapi Version: 4.24.2
Node/Yarn Version: npm/10.5.0 node/v20.12.2 linux x64 workspaces/false
Edition: Community
Database: mysql2
Describe the bug
throwing ApplicationError from strapi utils doesn't show an error in the admin ui. I get a 400 in the terminal, showing that the error was thrown, but in previous versions of strapi, an error would appear at the top of the admin panel with the custom error message
Steps to reproduce the behavior
add this code to a lifecycles.ts and see how no error is shown in the admin panel:
Expected behavior
An error to be shown at the top of the admin panel with the custom error.
The text was updated successfully, but these errors were encountered: