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
f224bba5
Commit
f224bba5
authored
Jan 20, 2021
by
Pierre Dittgen
Browse files
Handle non-table errors (e.g. task-error)
parent
78defca3
Changes
1
Hide whitespace changes
Inline
Side-by-side
validata_ui/views.py
View file @
f224bba5
...
...
@@ -365,7 +365,17 @@ def validate(schema_instance: SchemaInstance, validata_resource: ValidataResourc
badge_stats
=
validata_core
.
compute_badge_metrics
(
validata_core_report
,
badge_config
)
badge_url
,
badge_msg
=
get_badge_url_and_message
(
badge_stats
)
if
badge_stats
:
badge_url
,
badge_msg
=
get_badge_url_and_message
(
badge_stats
)
# 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
}
"
)
return
redirect
(
compute_validation_form_url
(
schema_instance
.
request_parameters
())
)
# Source error
source_errors
=
[
...
...
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