This is good, but it would be much better if the exception contained a list with all the parameters that were not matched. Is this behaviour possible currently?
EDIT:
I was reading the code base and came up with the following idea: perhaps in the parse_params function in lib/maru/builder/plug_router/runtime.ex we could delay the exception thrown by the blank_func and first reduce through all the errors and throw an exception at the end?
Currently if I have a params block for some route like this:
and a rescue block like this:
When I send a request with none of the parameters I get the following exception:
This is good, but it would be much better if the exception contained a list with all the parameters that were not matched. Is this behaviour possible currently?
EDIT:
I was reading the code base and came up with the following idea: perhaps in the parse_params function in lib/maru/builder/plug_router/runtime.ex we could delay the exception thrown by the blank_func and first reduce through all the errors and throw an exception at the end?