Return partial on receive error

Switch out ternaries

Signed-off-by: Ben Agricola <bagricola@squiz.co.uk>