perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: Win32 fails filter\out_bbs_filebucket
Date Fri, 13 Aug 2004 17:36:07 GMT
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:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message