You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axkit-dev@xml.apache.org by na...@apache.org on 2004/11/04 17:50:27 UTC

cvs commit: xml-axkit/lib AxKit.pm

nachbaur    2004/11/04 08:50:27

  Modified:    lib      AxKit.pm
  Log:
  Made AxKit log a more descriptive error message than "AxKit::load_module failed: Can't locate .pm in @INC" when no style module is supplied
  
  Revision  Changes    Path
  1.54      +5 -1      xml-axkit/lib/AxKit.pm
  
  Index: AxKit.pm
  ===================================================================
  RCS file: /home/cvs/xml-axkit/lib/AxKit.pm,v
  retrieving revision 1.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- AxKit.pm	18 Sep 2003 22:12:33 -0000	1.53
  +++ AxKit.pm	4 Nov 2004 16:50:27 -0000	1.54
  @@ -750,6 +750,10 @@
               $mapto = $mapping->{$style->{type}};
           }
   
  +        # if we get to this point, and we still don't have a module to
  +        # map to, die with a semi-useful error message
  +        die "No stylesheet module could be found" unless ($mapto);
  +
           AxKit::Debug(3, "about to execute: $mapto\::handler");
           AxKit::load_module($mapto);