emit error objects, not strings