[Dancer-users] Can't locate object method "new" via package "Dancer::Exception::Core::Request"
punk.kish at gmail.com
Sat Feb 25 01:49:46 CET 2012
On Feb 24, 2012, at 4:48 PM, David Precious wrote:
> On Fri, 24 Feb 2012 15:31:43 -0600
> Puneet Kishor <punk.kish at gmail.com> wrote:
>> I added a `debug` to my app and now I am getting the following with
>> the latest version of Dancer
>> Can't locate object method "new" via package
>> "Dancer::Exception::Core::Request" (perhaps you forgot to load
>> at /opt/local/lib/perl5/site_perl/5.14.1/Dancer/Exception.pm line 64.
>> Any idea why?
> This is a bug, fixed in devel:
> We should have a new stable release out soon,containing this fix (and a
> couple of others).
> The bug is triggered by a couple of error conditions within
> Dancer::Request, whereupon it tries to raise an exception of type
> Dancer::Exception::Core::Request, but that type wasn't defined.
yeah, actually, it wasn't because of `debug`. It was actually because I accidentally typed
my $foo = params 'foo';
my $foo = param 'foo';
More information about the Dancer-users