error repor when header/footer absent
authorEugene Crosser <crosser@average.org>
Fri, 5 Sep 2008 12:22:47 +0000 (12:22 +0000)
committerEugene Crosser <crosser@average.org>
Fri, 5 Sep 2008 12:22:47 +0000 (12:22 +0000)
mkgallery.pl

index 0e3423c761b18b693895752ff9fa1b7cb240f2b4..f7ef6c3e7ef4ff41411a9b379e9b42e4e8269310 100755 (executable)
@@ -681,6 +681,9 @@ sub startindex {
                );
                print $IND eval $prm,"\n";
        } else {
+               print STDERR "could not open ",
+                       $self->{-toppath}.'/'.$incdir.'/header.pl',
+                       " ($!), reverting to default header";
                print $IND a({-href=>"../index.html"},"UP"),"\n",
                        h1({-class=>'title'},$title),"\n",
        }
@@ -705,6 +708,10 @@ sub endindex {
                        -breadcrumbs    => "breadcrumbs unimplemented",
                );
                print $IND eval $prm,"\n";
+       } else {
+               print STDERR "could not open ",
+                       $self->{-toppath}.'/'.$incdir.'/footer.pl',
+                       " ($!), reverting to default empty footer";
        }
        print $IND end_html,"\n";