[dancer-users] Useless error message

gvim gvimrc at gmail.com
Mon Jun 3 19:50:40 BST 2013


>
> I would help if you post your source code for your Dancer application.
>
> Regards
> 	Racke
>
>

Most of my code in modules except routing:

**************************
package Astro::Routes;

use Dancer qw(:syntax);
use Astro::Planets;
use Astro::Login;
use Astro::Logout;
use Astro::Register;
use Astro::Astrologers;


post '/register' => sub {
   my %params = params;
   my %val = %{Astro::Register::run(\%params)};
   if ($val{passed}) { redirect '/response/registered.html' }
   else { template 'input_errors', { missing => $val{missing}, invalid 
=> $val{invalid}, unknown => $val{unknown} }}
};

post '/login'        => sub { Astro::Login::run };
post '/planets'      => sub { Astro::Planets::run };
post '/logout'       => sub { Astro::Logout::run };
get  '/astrologers'  => sub { Astro::Astrologers::run };

1;
********************************

The registration form submission which produced the error hits the 
'/register' route.

gvim



More information about the dancer-users mailing list