Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
validata-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
19
Issues
19
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Validata
validata-ui
Commits
6fb0e6a7
Commit
6fb0e6a7
authored
Jul 01, 2019
by
Pierre Dittgen
Committed by
Christophe Benz
Jul 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display catalog schema validation error
parent
79e5d7a9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
validata_ui/views.py
validata_ui/views.py
+3
-0
No files found.
validata_ui/views.py
View file @
6fb0e6a7
...
...
@@ -13,6 +13,7 @@ from operator import itemgetter
from
pathlib
import
Path
from
urllib.parse
import
urlencode
,
urljoin
import
jsonschema
import
requests
import
tableschema
import
tabulator
...
...
@@ -453,6 +454,8 @@ def home():
err_msg
=
"problème de connexion"
elif
isinstance
(
exc
,
json
.
decoder
.
JSONDecodeError
):
err_msg
=
"format JSON incorrect"
elif
isinstance
(
exc
,
jsonschema
.
exceptions
.
ValidationError
):
err_msg
=
"le catalogue ne respecte pas le schéma de référence"
home_section
[
'err'
]
=
err_msg
else
:
home_section_catalog
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment