summaryrefslogtreecommitdiffstats
path: root/src/H5FDsec2.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2005-08-04 05:17:07 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2005-08-04 05:17:07 (GMT)
commite47d1d053efb2ca38a54d5ed21d209b3576961b2 (patch)
tree18f1f03b7d82114cd941d2c9a5f22668274c1817 /src/H5FDsec2.c
parent4d65048d2d5468c79ef0b5c26f18f9262584d06d (diff)
downloadhdf5-e47d1d053efb2ca38a54d5ed21d209b3576961b2.zip
hdf5-e47d1d053efb2ca38a54d5ed21d209b3576961b2.tar.gz
hdf5-e47d1d053efb2ca38a54d5ed21d209b3576961b2.tar.bz2
[svn-r11195] Purpose:
Feature. Description: Added HSYS_ERROR macro to retrieve and push system error message to the error stack. Added the related H5E_SYSERRSTR error code. This allows system error messages be shown to users too. Thus give a better explanation of what the errors are. Platforms tested: h5committested.
Diffstat (limited to 'src/H5FDsec2.c')
-rw-r--r--src/H5FDsec2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/H5FDsec2.c b/src/H5FDsec2.c
index a83761f..51da619 100644
--- a/src/H5FDsec2.c
+++ b/src/H5FDsec2.c
@@ -362,8 +362,9 @@ H5FD_sec2_open(const char *name, unsigned flags, hid_t UNUSED fapl_id,
if (H5F_ACC_EXCL & flags) o_flags |= O_EXCL;
/* Open the file */
- if ((fd=HDopen(name, o_flags, 0666))<0)
- HGOTO_ERROR(H5E_FILE, H5E_CANTOPENFILE, NULL, "unable to open file")
+ if ((fd=HDopen(name, o_flags, 0666))<0){
+ HSYS_GOTO_ERROR(H5E_FILE, H5E_CANTOPENFILE, NULL, "unable to open file")
+ }
if (HDfstat(fd, &sb)<0)
HGOTO_ERROR(H5E_FILE, H5E_BADFILE, NULL, "unable to fstat file")