You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was a problem expanding macro 'add_route'
Code in macro 'match'
5 | add_route(:get, "/users/:user-id", Users::Show)
^
Called macro defined in src/lucky/routable.cr:191:3
191 | macro add_route(method, path, action)
Which expanded to:
> 7 |
> 8 |
> 9 | def user-id : String
^
Error: unexpected token: -1
It would be more helpful for users to check the path variable's format before trying to generate the methods and produce a descriptive error if they stray down this path.
The text was updated successfully, but these errors were encountered:
Say I try to define a route like:
It currently produces an error like:
It would be more helpful for users to check the path variable's format before trying to generate the methods and produce a descriptive error if they stray down this path.
The text was updated successfully, but these errors were encountered: