Enhancement: Add class and funcion name to ImproperlyConfiguredException
s
#3548
Labels
Enhancement
This is a new feature or request
ImproperlyConfiguredException
s
#3548
Summary
When you forget to add a type annotation in a route handler function, Litestar raises ImproperlyConfiguredException but neither the stack trace, nor the message shows which function or method is in error.
If the annotation were checked in
@get
decorators, the stack trace would let you find the line with the problem. If that's impossible, the exception should at least show function name, and the class in case of methods.I volunteer to add function name in
_validate_handler_function()
.Basic Example
No response
Drawbacks and Impact
No response
Unresolved questions
No response
Note
While we are open for sponsoring on GitHub Sponsors and
OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.
Check out all issues funded or available for funding on our Polar.sh dashboard
The text was updated successfully, but these errors were encountered: