--- nfo/perl/libs/Data/Storage/Handler/XML.pm 2003/02/20 20:20:54 1.1 +++ nfo/perl/libs/Data/Storage/Handler/XML.pm 2003/02/21 07:58:48 1.2 @@ -1,7 +1,10 @@ ## ------------------------------------------------------------------------ -## $Id: XML.pm,v 1.1 2003/02/20 20:20:54 joko Exp $ +## $Id: XML.pm,v 1.2 2003/02/21 07:58:48 joko Exp $ ## ------------------------------------------------------------------------ ## $Log: XML.pm,v $ +## Revision 1.2 2003/02/21 07:58:48 joko +## enhanced error detection +## ## Revision 1.1 2003/02/20 20:20:54 joko ## + initial commit ## @@ -32,7 +35,7 @@ my $xpq = shift; my $options = shift; - $self->log( "xpq='$xpq'", 'info' ); + $self->log( "xpq='$xpq'", 'debug' ); # trace #print Dumper($self); @@ -40,6 +43,11 @@ my $file = $self->{filename}; + if (!$file) { + $self->log("No filename given.", 'error'); + return; + } + if (! -e $file) { $self->log("File not found: '$file'.", 'error'); return;