Added message to EOFError.
This commit is contained in:
parent
85fc392b9e
commit
201be057fb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue