Can't locate object method "new" via package "Dancer::Exception::Core::Request"
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 "Dancer::Exception::Core::Request"?) at /opt/local/lib/perl5/site_perl/5.14.1/Dancer/Exception.pm line 64. /opt/local/lib/perl5/site_perl/5.14.1/Dancer/Exception.pm around line 64 61 $exception = $exception_name->new(@_); 62 } else { 63 _camelize($exception_name); 64 $exception = "Dancer::Exception::$exception_name"->new(@_); 65 } 66 $exception->throw(); Any idea why? -- Puneet Kishor
On Fri, 24 Feb 2012 15:31:43 -0600 Puneet Kishor <punk.kish@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 "Dancer::Exception::Core::Request"?) 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: https://github.com/sukria/Dancer/commit/65e84b2d 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. Sorry about that :) -- David Precious ("bigpresh") <davidp@preshweb.co.uk> http://www.preshweb.co.uk/ www.preshweb.co.uk/twitter www.preshweb.co.uk/linkedin www.preshweb.co.uk/facebook www.preshweb.co.uk/cpan www.preshweb.co.uk/github
On Feb 24, 2012, at 4:48 PM, David Precious wrote:
On Fri, 24 Feb 2012 15:31:43 -0600 Puneet Kishor <punk.kish@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 "Dancer::Exception::Core::Request"?) 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:
https://github.com/sukria/Dancer/commit/65e84b2d
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'; instead of my $foo = param 'foo'; -- Puneet Kishor
participants (2)
-
David Precious -
Puneet Kishor