summaryrefslogtreecommitdiffstats
path: root/Objects/fileobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/fileobject.c')
-rw-r--r--Objects/fileobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index 1f1dcae..db9a088 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -342,7 +342,8 @@ getline(f, n)
}
if (n < 0 && buf == BUF(v)) {
DECREF(v);
- err_set(EOFError);
+ err_setstr(EOFError,
+ "EOF when reading a line");
return NULL;
}
break;