Carl Vincent wrote:
> I've patched my Config::Any (attached below) so it throws a warning. Not
> sure if this would cause problems if it was included in the distributed
> module...
This is something I've been worried about for a while. Config::Any
tries to load every config file with every "backend", so printing
warnings is going to lead to a lot of spurious garbage.
Perhaps making ConfigLoader louder would help? If no config is loaded
(but ConfigLoader is loaded), then perhaps we need to
[warn] Config file found but failed to load. Errors
[warn] YAML_OMG_YOU_FORGOT_SOMETHING (Line 42, Column 32)
etc.
[warn] XML::Parser error: no <?xml ?> declaration
[warn] JSON ...
As you can see it's kind of verbose that way. What do other people think?
--
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do {
$,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //,
";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup;
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/