Emit error instead of returning nothing