properly forward stream errors