You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2006/07/18 16:53:55 UTC

svn commit: r423100 - /webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c

Author: samisa
Date: Tue Jul 18 07:53:54 2006
New Revision: 423100

URL: http://svn.apache.org/viewvc?rev=423100&view=rev
Log:
Added file op error info

Modified:
    webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c

Modified: webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c?rev=423100&r1=423099&r2=423100&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c (original)
+++ webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c Tue Jul 18 07:53:54 2006
@@ -185,7 +185,11 @@
         
         f = fopen(data_handler_impl->file_name, "rb");
         if (!f)
+        {
+            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, 
+                " error opening file %s for reading ", data_handler_impl->file_name);
             return AXIS2_FAILURE;
+        }
         
         do {
             struct stat stat_p;
@@ -312,7 +316,11 @@
         
         f = fopen(data_handler_impl->file_name, "wb");
         if (!f)
+        {
+            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, 
+                " error opening file %s for writing ", data_handler_impl->file_name);
             return AXIS2_FAILURE;
+        }
             
         count = fwrite(data_handler_impl->buffer, 1, data_handler_impl->buffer_len, f);
         



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org