commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r809871 - /commons/sandbox/runtime/trunk/src/main/native/include/acr_error.h
Date Tue, 01 Sep 2009 07:46:22 GMT
Author: mturk
Date: Tue Sep  1 07:46:21 2009
New Revision: 809871

URL: http://svn.apache.org/viewvc?rev=809871&view=rev
Log:
Throw description with SecurityException

Modified:
    commons/sandbox/runtime/trunk/src/main/native/include/acr_error.h

Modified: commons/sandbox/runtime/trunk/src/main/native/include/acr_error.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/acr_error.h?rev=809871&r1=809870&r2=809871&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/acr_error.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/acr_error.h Tue Sep  1 07:46:21
2009
@@ -132,7 +132,7 @@
 #define ACR_THROW_IO_IF_ERR(S)                                              \
     if ((S) && IS_VALID_HANDLE(_E)) {                                       \
         if (ACR_STATUS_IS_EACCES((S)))                                      \
-            ACR_ThrowException(_E, THROW_NMARK, ACR_EX_ESECURITY, 0);       \
+            ACR_ThrowException(_E, THROW_NMARK, ACR_EX_ESECURITY, (S));     \
         else                                                                \
             ACR_ThrowException(_E, THROW_NMARK, ACR_EX_EIO, (S));           \
         ACR_SET_OS_ERROR((S));                                              \
@@ -148,7 +148,7 @@
     if (IS_VALID_HANDLE(_E)) {                                              \
         int _se = ACR_GET_OS_ERROR();                                       \
         if (ACR_STATUS_IS_EACCES(_se))                                      \
-            ACR_ThrowException(_E, THROW_NMARK, ACR_EX_ESECURITY, 0);       \
+            ACR_ThrowException(_E, THROW_NMARK, ACR_EX_ESECURITY, _se);     \
         else                                                                \
             ACR_ThrowException(_E, THROW_NMARK, ACR_EX_EIO, _se);           \
         ACR_SET_OS_ERROR(_se);                                              \



Mime
View raw message