compdemocracy / polis

:milky_way: Open Source AI for large scale open ended feedback
https://pol.is
GNU Affero General Public License v3.0
754 stars 173 forks source link

Fix bad error messages on seed comment submission #1703

Open metasoarous opened 1 year ago

metasoarous commented 1 year ago

Expected behavior: If there's an error with seed comment submission, such as a failed call to the Google Translate API, a simple message should be displayed like "Unable to translate comment. Please contact administrator."

Actual behavior: An html response is sent, which is then rendered as an undecipherable string.

Screenshots: image

Additional context: