And this will show the filename when it fails to open it.

Index: xs/Apache/RequestIO/Apache__RequestIO.h
===================================================================
RCS file: /home/cvs/modperl-2.0/xs/Apache/RequestIO/Apache__RequestIO.h,v
retrieving revision 1.54
diff -u -r1.54 Apache__RequestIO.h
--- xs/Apache/RequestIO/Apache__RequestIO.h 12 Jul 2004 08:17:09 -0000 1.54
+++ xs/Apache/RequestIO/Apache__RequestIO.h 13 Aug 2004 17:33:21 -0000
@@ -325,7 +325,10 @@


     if (rc != APR_SUCCESS) {
         if (GIMME_V == G_VOID) {
-            modperl_croak(aTHX_ rc, "Apache::RequestIO::sendfile");
+            modperl_croak(aTHX_ rc,
+                          apr_psprintf(r->pool,
+                                       "Apache::RequestIO::sendfile('%s')",
+                                       filename));
         }
         else {
             return rc;


-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to