Revert "reader: move error check in validate"

This reverts commit 23d7fec7297ac454a93338374814f1b4b63f8cff.

When using Read, process the returned data before looking for errors. Errors happened after the returned data, so they should be processed after the data too.

Change-Id: I17f935521b76a35db5967cdb5e9b87bd0ab8a1bb
Reviewed-on: https://go-review.googlesource.com/16103
Reviewed-by: Andrew Gerrand <adg@golang.org>
1 file changed