summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/_io/fileio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c
index 3d41d81..919cf50 100644
--- a/Modules/_io/fileio.c
+++ b/Modules/_io/fileio.c
@@ -423,7 +423,8 @@ _io_FileIO___init___impl(fileio *self, PyObject *nameobj, const char *mode,
Py_DECREF(fdobj);
if (self->fd < 0) {
if (!PyErr_Occurred()) {
- /* The opener returned -1. See issue #27066 */
+ /* The opener returned a negative but didn't set an
+ exception. See issue #27066 */
PyErr_Format(PyExc_ValueError,
"opener returned %d", self->fd);
}