Yield with an error instance instead of error class
#30750

k2nr wants to merge k2nr:fix-active-job into rails:master

We do not currently have an analysis of these two commits