You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by sb...@hyperreal.org on 1999/01/23 19:14:56 UTC

cvs commit: modperl/lib/Apache RegistryLoader.pm

sbekman     99/01/23 10:14:56

  Modified:    lib/Apache RegistryLoader.pm
  Log:
  Untill now if filename wasn't passed as an argumaent and handler failed to translate it by
  using the uri, it quetly skipped over. Now it warns the user that the loading has failed and
  explains how make the correct translation by pointing to the man page.
  
  Revision  Changes    Path
  1.12      +7 -0      modperl/lib/Apache/RegistryLoader.pm
  
  Index: RegistryLoader.pm
  ===================================================================
  RCS file: /export/home/cvs/modperl/lib/Apache/RegistryLoader.pm,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- RegistryLoader.pm	1998/07/30 15:37:18	1.11
  +++ RegistryLoader.pm	1999/01/23 18:14:55	1.12
  @@ -19,6 +19,13 @@
   	if(my $func = $self->{trans}) {
   	    no strict 'refs';
   	    $filename = &{$func}($uri);
  +       } else {
  +
  +      # warn user if translate process fails,
  +          warn "RegistryLoader: Cannot translate the URI $uri
  +              into a real path to the filename. Please refer to the manpage for$
  +              or use the complete method's call like:
  +              \$rl->handler(uri,filname);\n";
   	}
       }