when/where would this error?

you might want to just emit an error normally.