Skip to content

Commit

Permalink
Merge pull request #37 from takluyver/description-errno
Browse files Browse the repository at this point in the history
Note that the description for system errors may be used by h5py
  • Loading branch information
lrknox authored Oct 15, 2020
2 parents 220f897 + bb2ed71 commit e6cda48
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/H5Eprivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)); \
}
Expand Down

0 comments on commit e6cda48

Please sign in to comment.