Merge pull request #37 from takluyver/description-errno

Note that the description for system errors may be used by h5py
This commit is contained in:
Larry Knox 2020-10-15 18:31:57 -05:00 committed by GitHub
commit e6cda4817b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,12 +114,18 @@ typedef struct H5E_t H5E_t;
#define HSYS_DONE_ERROR(majorcode, minorcode, retcode, str) \
{ \
int myerrno = errno; \
/* Other projects may rely on the description format to get the errno and any changes should be \
* considered as an API change \
*/ \
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; \
/* Other projects may rely on the description format to get the errno and any changes should be \
* considered as an API change \
*/ \
HGOTO_ERROR(majorcode, minorcode, retcode, "%s, errno = %d, error message = '%s'", str, myerrno, \
HDstrerror(myerrno)); \
}