diff options
author | Thomas Kluyver <thomas@kluyver.me.uk> | 2020-10-15 09:49:22 (GMT) |
---|---|---|
committer | Thomas Kluyver <thomas@kluyver.me.uk> | 2020-10-15 09:49:22 (GMT) |
commit | 73aba9228d2967647629b40ae957719588c757d5 (patch) | |
tree | ae57394c65f830f44d74642801e506b9488423b9 /src | |
parent | 220f8972cdd6ccd7b8715a0fb17c1867fd0b35c5 (diff) | |
download | hdf5-73aba9228d2967647629b40ae957719588c757d5.zip hdf5-73aba9228d2967647629b40ae957719588c757d5.tar.gz hdf5-73aba9228d2967647629b40ae957719588c757d5.tar.bz2 |
Note that the description for system errors may be used by h5py
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Eprivate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5Eprivate.h b/src/H5Eprivate.h index 8f89201..bf733ea 100644 --- a/src/H5Eprivate.h +++ b/src/H5Eprivate.h @@ -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)); \ } |