r1236@llin: dpavlin | 2007-05-24 16:38:02 +0200
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 24 May 2007 14:42:38 +0000 (14:42 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 24 May 2007 14:42:38 +0000 (14:42 +0000)
 require path or delimiters_path

git-svn-id: svn+ssh://mjesec/home/dpavlin/svn/webpac2/trunk@839 07558da8-63fa-0310-ba24-9fe276d99e06

lib/WebPAC/Validate.pm

index c29c81d..686d4d8 100644 (file)
@@ -67,10 +67,10 @@ sub new {
        my $self = {@_};
        bless($self, $class);
 
-warn dump( @_ );
-
        my $log = $self->_get_logger();
 
+       $log->logdie("need path or delimiters_path") unless ( $self->{path} || $self->{delimiters_path} );
+
        if ( $self->{path} ) {
 
                my $v_file = read_file( $self->{path} ) ||