[5966] core 0.007483> [hit 11]entering before hook in /opt/local/lib/perl5/site_perl/5.10.1/Dancer/Route/Registry.pm l. 50
[5966] error 0.041875> [hit 11]Database connection failed - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /opt/local/lib/perl5/site_perl/5.10.1/Dancer/Plugin/Database.pm l. 116
[5966] core 0.042070> [hit 11]request to /login crashed: Can't bless non-reference value at /opt/local/lib/perl5/site_perl/5.10.1/Dancer/Plugin/Database.pm line 130. in /opt/local/lib/perl5/site_perl/5.10.1/Dancer/Handler.pm l. 76
[5966] core 0.042358> [hit 11]new Error object: [500] Can't bless non-reference value at /opt/local/lib/perl5/site_perl/5.10.1/Dancer/Plugin/Database.pm line 130. in /opt/local/lib/perl5/site_perl/5.10.1/Dancer/Error.pm l. 30
[5966] core 0.042973> [hit 11]response: 500 in /opt/local/lib/perl5/site_perl/5.10.1/Dancer/Handler.pm l. 131
It would be more useful to have database be undef instead so I can check for this in a before sub.
It would be more useful to have database be undef instead so I can check for this in a before sub.