emit error events