Commit 49bd1d82 authored by Pierre Dittgen's avatar Pierre Dittgen

Better error display

parent e8d23f7b
...@@ -100,7 +100,8 @@ class SchemaInstance: ...@@ -100,7 +100,8 @@ class SchemaInstance:
self.url = schema_reference.get_schema_url(ref=self.ref) self.url = schema_reference.get_schema_url(ref=self.ref)
else: else:
abort(400, "L'un des paramètres est nécessaire : 'schema_name', 'schema_url'") flash_error("Erreur dans la récupération des informations de schéma")
abort(redirect(url_for('home')))
try: try:
self.schema = tableschema_from_url(self.url) self.schema = tableschema_from_url(self.url)
......
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