summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas Kluyver <thomas@kluyver.me.uk>2020-10-15 14:29:56 (GMT)
committerThomas Kluyver <thomas@kluyver.me.uk>2020-10-15 14:29:56 (GMT)
commitbb2ed7151b05b0a159a991bacc7c58d46f39d3c5 (patch)
treee7639d271af88e8f769cb0315dcadd76731ad9b7 /src
parent73aba9228d2967647629b40ae957719588c757d5 (diff)
downloadhdf5-bb2ed7151b05b0a159a991bacc7c58d46f39d3c5.zip
hdf5-bb2ed7151b05b0a159a991bacc7c58d46f39d3c5.tar.gz
hdf5-bb2ed7151b05b0a159a991bacc7c58d46f39d3c5.tar.bz2
More general message about using description for errno
Diffstat (limited to 'src')
-rw-r--r--src/H5Eprivate.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/H5Eprivate.h b/src/H5Eprivate.h
index bf733ea..f3d3b6f 100644
--- a/src/H5Eprivate.h
+++ b/src/H5Eprivate.h
@@ -114,14 +114,18 @@ 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 */ \
+ /* 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; \
- /* h5py may rely on the description format to get the errno - please try to avoid breaking it */ \
+ /* 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)); \
}