reader: improve some error messages (#52)