In Firefox 68, if I mess up the captcha, then I get {"error":"{\"captcha\":[\"Invalid CAPTCHA\"]}"}.
It looks like signUp in src/modules/user.js is getting into its catch block and errors is a string containing a JSON object, but it isn't trying to humanize it because it's not an object according to typeof.
error appears to be a string instead of an object here in api.service.js:
And then there's this in pleroma's Pleroma.Web.TwitterAPI.TwitterAPI.register_user:
# Captcha invalidifcaptcha_ok!=:okdo{:error,error}=captcha_ok# I have no idea how this error handling works{:error,%{error:Jason.encode!(%{captcha:[error]})}}
I might be able to hack something together for this assuming that the error is always going to be a string in a similar format to the one above.