Changed dyad_streamError() to accept errno