Really simple. Just ask it to point out the error. Also maybe tell it how the code is wrong. And then hope that the new code didn’t introduce new errors in formerly working sections. And that it understood what you meant. In a language that is inherently vague.