X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FConfig-Any.git;a=blobdiff_plain;f=lib%2FConfig%2FAny.pm;h=14b31a7eb5d9d4aad124bebc599b955cb2b248fa;hp=dce93ceb5b13090546ff825c5c9a8c9d2457bf2b;hb=92c29326caaebb0ded4acf22cf92f4d6fb707eba;hpb=8af0a7cf96c671f13244fec2e0f15a4c13f2737d diff --git a/lib/Config/Any.pm b/lib/Config/Any.pm index dce93ce..14b31a7 100644 --- a/lib/Config/Any.pm +++ b/lib/Config/Any.pm @@ -159,6 +159,7 @@ sub _load { } my @results; + warn $@ if $@; for my $filename ( @{ $args->{ files } } ) { @@ -179,7 +180,7 @@ sub _load { = eval { $loader->load( $filename, $loader_args{ $loader } ); }; # fatal error if we used extension matching - croak "Error parsing file: $filename" if $@ and $use_ext_lut; + croak "Error parsing $filename: $@" if $@ and $use_ext_lut; next if $@ or !@configs; # post-process config with a filter callback