omit generated var name when reporting exhaustion errors (fixes #1881)