When an edit triggers the captcha, it displays an "error" message at the top of the captcha, that prints literally, <div class="error">$1</div>
I can see the message being print in the ReCaptchaNoCaptcha.php file on line 165:
$msg = new RawMessage( '<div class="error">$1</div>', [ $msg ] );