Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

More descriptive exceptions for HttpRouter#url #24

Open
postmodern opened this Issue · 0 comments

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
Something went wrong with that request. Please try again.