readwrite: typo in the error generation code

Signed-off-by: Joe Buck <jbbuck@gmail.com>