Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Validata
Validata UI
Commits
b14c6622
Commit
b14c6622
authored
Mar 04, 2021
by
Pierre Dittgen
Browse files
fix issue
#82
parent
2b74a647
Changes
1
Hide whitespace changes
Inline
Side-by-side
validata_ui/views.py
View file @
b14c6622
...
...
@@ -381,8 +381,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
log
.
error
(
msg
)
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."
)
flash_error
(
ui_error_msg
)
return
redirect
(
compute_validation_form_url
(
schema_instance
.
request_parameters
())
)
...
...
Pierre Dittgen
@pdi
mentioned in issue
#82 (closed)
·
Mar 04, 2021
mentioned in issue
#82 (closed)
mentioned in issue #82
Toggle commit list
Write
Preview
Supports
Markdown
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