Commit 28ccd54d authored by Pierre Dittgen's avatar Pierre Dittgen

Error message rewording

parent 381160d4
......@@ -20,6 +20,7 @@ from backports.datetime_fromisoformat import MonkeyPatch
from commonmark import commonmark
from flask import abort, make_response, redirect, render_template, request, url_for
from opendataschema import GitSchemaReference, by_commit_date
from validata_core import messages, repair
from . import app, config, schema_catalog_registry, tableschema_from_url
......@@ -481,11 +482,11 @@ def validate(schema_instance: SchemaInstance, source: ValidataResource):
response = requests.post(config.API_VALIDATE_ENDPOINT, data=data, files=files, headers=headers)
except requests.ConnectionError as err:
logging.exception(err)
flash_error("Erreur technique lors de la validation")
flash_error("Une erreur est survenue lors de la validation")
return redirect(url_for('home'))
if not response.ok:
flash_error("Erreur technique lors de la validation")
flash_error("Une erreur est survenue lors de la validation")
return redirect(compute_validation_form_url(schema_instance.request_parameters()))
json_response = response.json()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment