iinteractive / OX

the hardest working two letters in Perl

Home Page:http://metacpan.org/release/OX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suspicious use of fetch in route builders

wayan opened this issue · comments

There is a construction in OX::RouteBuilder::HTTPMethod::compile_routes

my $s = $app->fetch($a);
return [
        500,
        [],
        [blessed($app) . " has no service $a"]
] unless $s;

which probably doesn't work because fetch raises an exception when the service could not be found. A similar construction is also in OX::RouteBuilder::ControllerMethod.

Fixed in 87f9202.