Add an "invalid I/O operation" error code.

This commit is contained in:
Nigel Tao committed 2017-11-05 13:53:35 +11:00
1 parent b6a079fd3e
commit 3099991d7f
5 files changed
+27 -20

No files matched your search

+1
View File
@@ -41,6 +41,7 @@ var StatusList = [...]Status{
{t.IDError, "bad receiver"},
{t.IDError, "bad argument"},
{t.IDError, "initializer not called"},
{t.IDError, "invalid I/O operation"},
{t.IDError, "closed for writes"}, // TODO: is this unused? Should callee or caller check closed-ness?
{t.IDError, "unexpected EOF"}, // Used if reading when closed == true.
{t.IDSuspension, "short read"}, // Used if reading when closed == false.