Use slightly less direct means to trigger error

The uncaught error may only be thrown when this codepath is taken.