add parse error tests. ensure INI errors are trapped. bumped version.
[p5sagit/Config-Any.git] / lib / Config / Any / INI.pm
index 68e3f06..e0d7215 100644 (file)
@@ -45,6 +45,9 @@ sub load {
 
     require Config::Tiny;
     my $config = Config::Tiny->read( $file );
+
+    die $Config::Tiny::errstr if not defined $config;
+
     my $out = delete $config->{ _ } || {};
 
     for my $k ( keys %$config ) {