mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-18 17:40:55 +08:00
Note that the description for system errors may be used by h5py
This commit is contained in:
parent
220f8972cd
commit
73aba9228d
@ -114,12 +114,14 @@ typedef struct H5E_t H5E_t;
|
||||
#define HSYS_DONE_ERROR(majorcode, minorcode, retcode, str) \
|
||||
{ \
|
||||
int myerrno = errno; \
|
||||
/* h5py may rely on the description format to get the errno - please try to avoid breaking it */ \
|
||||
HDONE_ERROR(majorcode, minorcode, retcode, "%s, errno = %d, error message = '%s'", str, myerrno, \
|
||||
HDstrerror(myerrno)); \
|
||||
}
|
||||
#define HSYS_GOTO_ERROR(majorcode, minorcode, retcode, str) \
|
||||
{ \
|
||||
int myerrno = errno; \
|
||||
/* h5py may rely on the description format to get the errno - please try to avoid breaking it */ \
|
||||
HGOTO_ERROR(majorcode, minorcode, retcode, "%s, errno = %d, error message = '%s'", str, myerrno, \
|
||||
HDstrerror(myerrno)); \
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user