More descriptive exceptions for HttpRouter#url #24

Open
postmodern opened this Issue Jan 3, 2012 · 0 comments

Comments

Projects
None yet
1 participant
@postmodern

HttpRouter#url needs to raise more descriptive exceptions, when required url params are not specified:

r.url(:my_test_path)
HttpRouter::InvalidRouteException: HttpRouter::InvalidRouteException
    /home/hal/.rvm/gems/ruby-1.9.3-p0/gems/http_router-0.10.2/lib/http_router/route.rb:144:in `block in url_with_params'
    /home/hal/.rvm/gems/ruby-1.9.3-p0/gems/http_router-0.10.2/lib/http_router/route.rb:153:in `url_args_processing'
    /home/hal/.rvm/gems/ruby-1.9.3-p0/gems/http_router-0.10.2/lib/http_router/route.rb:142:in `url_with_params'
    /home/hal/.rvm/gems/ruby-1.9.3-p0/gems/http_router-0.10.2/lib/http_router/route.rb:133:in `url'
    /home/hal/.rvm/gems/ruby-1.9.3-p0/gems/http_router-0.10.2/lib/http_router.rb:154:in `block in url'
    /home/hal/.rvm/gems/ruby-1.9.3-p0/gems/http_router-0.10.2/lib/http_router.rb:154:in `each'
    /home/hal/.rvm/gems/ruby-1.9.3-p0/gems/http_router-0.10.2/lib/http_router.rb:154:in `url'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment