check if read child returned error