perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbek...@hyperreal.org
Subject cvs commit: modperl/lib/Apache RegistryLoader.pm
Date Sun, 24 Jan 1999 21:15:39 GMT
sbekman     99/01/24 13:15:39

  Modified:    lib/Apache RegistryLoader.pm
  Log:
  A second try :) Now if the second argument ($filename) is not passed to
  handler() and it fails to translate the uri into a path to the filename
  it warns the caller, and point to the man page :)
  
  (is doing perl -c foo.pl is enough to check I didn't break something? I
  work from a very slow connection so every character I type echos after a
  few secs :(
  
  Revision  Changes    Path
  1.14      +9 -1      modperl/lib/Apache/RegistryLoader.pm
  
  Index: RegistryLoader.pm
  ===================================================================
  RCS file: /export/home/cvs/modperl/lib/Apache/RegistryLoader.pm,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- RegistryLoader.pm	1999/01/24 20:01:33	1.13
  +++ RegistryLoader.pm	1999/01/24 21:15:38	1.14
  @@ -19,7 +19,15 @@
   	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 more information
  +              or use the complete method's call like:
  +              \$rl->handler(uri,filname);\n";
  +        }
       }
   
       #warn "RegistryLoader: uri=$uri, filename=$filename\n";
  
  
  

Mime
View raw message