Use IOError.
This commit is contained in:
parent
bd3a2e6b11
commit
2912f22afc
|
@ -86,7 +86,7 @@ printobject(op, fp, flags)
|
||||||
}
|
}
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
if (ferror(fp)) {
|
if (ferror(fp)) {
|
||||||
err_errno(RuntimeError);
|
err_errno(IOError);
|
||||||
clearerr(fp);
|
clearerr(fp);
|
||||||
ret = -1;
|
ret = -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue