Adding an emit error