Catching all the validation errors on adding new Collection Type

System Information
  • Strapi Version: 4.25.4
  • Operating System: MacOS
  • Database: PostgreSQL
  • Node Version: 20 LTS
  • NPM Version: latest
  • Yarn Version: latest

Hello,

We have multiple nested components for some of the Collection Types. The problem is, if there are any problems really deep, one does not see it (as the error message is so deep). My question is, can I catch all the errors on forms validation somehow?

My idea was to catch them (like in a global middleware), filter and “rethrow” to see a list on snackbar etc. Is there any way, as it seems these errors are just purely a form validation and does not reach backend side…