gh-119180: Make the FORWARDREF format work with more kinds of runtime errors (#133407)

3 files changed