Commit 7ef1f83c authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

fix issue #82

parent de21044b
......@@ -382,8 +382,15 @@ def validate(schema_instance: SchemaInstance, validata_resource: ValidataResourc
# Non table errors
if validata_core_report["errors"]:
non_table_error = validata_core_report["errors"][0]
msg = non_table_error["note"]
flash_error(f"Une erreur est survenue empêchant la validation : {msg}")
msg = non_table_error.message
ui_error_msg = f"Une erreur est survenue durant la validation : {msg}"
if msg.startswith("The validation task has an error"):
ui_error_msg = (
"La validation ne peut s'effectuer sur ce fichier, "
"celui-ci n'est pas compatible avec le schéma."
return redirect(
Supports Markdown
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