mccalltd / AttributeRouting

Define your routes using attributes on actions in ASP.NET MVC and Web API.
http://mccalltd.github.io/AttributeRouting/
MIT License
416 stars 89 forks source link

Unhelpful exception #288

Open AaronLS opened 10 years ago

AaronLS commented 10 years ago

This error message provides no context of what route is causing the error: Could not find an available inline constraint for "{string}".

Would be nice if it included some information about what the full route was it was trying to parse or what method/class the route attribute was attached to that it was trying to parse.

Since it is thrown MapAttributeRoutes which process all routes in the assembly, it is difficult to determine which route is the offending one.