We could just remove `error` now and just check `!streamError` in the enclosing `while` condition.