[Dancer-users] sane error messages
Mr. Puneet Kishor
punk.kish at gmail.com
Sun Jun 24 14:59:13 CEST 2012
When Dancer came out, I exclaimed that "Dancer is a breath of fresh air in the convoluted world of Perl web frameworks." (see http://perldancer.org/).
However, there is still much to be done. Consider the error message below. What it really was trying to tell me what that I had a couple of tabs in my "development.yml"
Could the error messages be made more sane by default?
Many thanks for the consideration.
----
Error while loading /Volumes/roller/Users/punkish/Sites_development/earthbase/bin/app.pl: Unable to parse the configuration file: /Volumes/roller/Users/punkish/Sites_development/earthbase/environments/development.yml: Died at /opt/local/lib/perl5/site_perl/5.14.1/YAML/Loader.pm line 676, <$IN> line 1.
at /opt/local/lib/perl5/site_perl/5.14.1/Dancer/Config.pm line 202
Dancer::Config::load_settings_from_yaml('/Volumes/roller/Users/punkish/Sites_development/earthbase/env...') called at /opt/local/lib/perl5/site_perl/5.14.1/Dancer/Config.pm line 182
Dancer::Config::load('Dancer::Config') called at /opt/local/lib/perl5/site_perl/5.14.1/Dancer.pm line 258
Dancer::import('Dancer') called at /Volumes/roller/Users/punkish/Sites_development/earthbase/bin/app.pl line 2
Plack::Sandbox::_2fVolumes_2froller_2fUsers_2fpunkish_2fSites_development_2fearthbase_2fbin_2fapp_2epl::BEGIN() called at /Volumes/roller/Users/punkish/Sites_development/earthbase/bin/app.pl line 2
eval {...} called at /Volumes/roller/Users/punkish/Sites_development/earthbase/bin/app.pl line 2
require /Volumes/roller/Users/punkish/Sites_development/earthbase/bin/app.pl called at (eval 7) line 3
eval 'package Plack::Sandbox::_2fVolumes_2froller_2fUsers_2fpunkish_2fSites_development_2fearthbase_2fbin_2fapp_2epl;
{
my $app = do $_file;
if ( !$app && ( my $error = $@ || $! )) { die $error; }
$app;
}
;' called at /opt/local/lib/perl5/site_perl/5.14.1/Plack/Util.pm line 118
Plack::Util::_load_sandbox('/Volumes/roller/Users/punkish/Sites_development/earthbase/bin...') called at /opt/local/lib/perl5/site_perl/5.14.1/Plack/Util.pm line 155
Plack::Util::load_psgi('/Volumes/roller/Users/punkish/Sites_development/earthbase/bin...') called at /opt/local/lib/perl5/site_perl/5.14.1/Plack/Runner.pm line 176
Plack::Runner::__ANON__() called at /opt/local/lib/perl5/site_perl/5.14.1/Plack/Runner.pm line 23
Plack::Runner::__ANON__() called at /opt/local/lib/perl5/site_perl/5.14.1/Plack/Runner.pm line 23
Plack::Runner::__ANON__() called at /opt/local/lib/perl5/site_perl/5.14.1/Plack/Runner.pm line 23
Plack::Runner::__ANON__() called at /opt/local/lib/perl5/site_perl/5.14.1/Plack/Runner.pm line 23
Plack::Runner::__ANON__() called at /opt/local/lib/perl5/site_perl/5.14.1/Plack/Loader.pm line 59
Plack::Loader::preload_app('Plack::Loader=HASH(0x7fbf320651e0)', 'CODE(0x7fbf3206a000)') called at /opt/local/lib/perl5/site_perl/5.14.1/Plack/Runner.pm line 260
Plack::Runner::run('Plack::Runner=HASH(0x7fbf32010dd8)') called at /opt/local/bin/plackup line 10
BEGIN failed--compilation aborted at /Volumes/roller/Users/punkish/Sites_development/earthbase/bin/app.pl line 2.
----
--
Puneet Kishor http://punkish.org
science http://earth-base.org
More information about the Dancer-users
mailing list