doc: document arguments for 'error' event on a stream

Fixes #6361.