matts 2005/10/25 13:34:37
Modified: lib/Apache/AxKit/Language XSP.pm Log: Check if base-class is defined/loaded Revision Changes Path 1.59 +6 -1 xml-axkit/lib/Apache/AxKit/Language/XSP.pm Index: XSP.pm =================================================================== RCS file: /home/cvs/xml-axkit/lib/Apache/AxKit/Language/XSP.pm,v retrieving revision 1.58 retrieving revision 1.59 diff -u -r1.58 -r1.59 --- XSP.pm 24 Oct 2005 18:42:56 -0000 1.58 +++ XSP.pm 25 Oct 2005 20:34:37 -0000 1.59 @@ -716,6 +716,11 @@ $e->{XSP_Indent} = 1; } if (exists $attribs{'base-class'}) { + if (! $attribs{'base-class'}->can("handler") ) { + die "base-class used but cannot find a handler() method in the " . + $attribs{'base-class'} . " class. Did you remember to add PerlModule " . + $attribs{'base-class'} . " to httpd.conf?"; + } $e->{XSP_Base_Class} = $attribs{'base-class'}; } if (my $i = lc $attribs{'attribute-value-interpolate'}) {