vimeo / psalm

A static analysis tool for finding errors in PHP applications
https://psalm.dev
MIT License
5.5k stars 655 forks source link

Plugin exception details #10998

Open shahruslan opened 1 month ago

shahruslan commented 1 month ago

I'm just starting to use this library. I'm currently writing a plugin. And I need to display an error to the user, for example if he configured the configuration file incorrectly. If I throw an exception in the plugin class. Then the user sees only the text Failed to invoke plugin plugin_name. How can I show him the details of the error? Or maybe I'm doing it wrong?

psalm-github-bot[bot] commented 1 month ago

Hey @shahruslan, can you reproduce the issue on https://psalm.dev? These will be used as phpunit tests when implementing the feature or fixing this bug.