Improve Error message for linked loop that doesn't find ref loop
- Dominant language
- JavaScript
- Stars
- 23
- Forks
- 19
- Avg merge
- 19h 49m
- Merged PRs (30d)
- 14
Description
## Feature Description
Improve Error message in Pogues when trying to visualize survey with link loop that doesn't find ref loop
When trying to save the module in the same situation, the error message display is more user-friendly.
Why not use the same massage when trying to visualize the survey ?
## Use Case
User create Linked Loop from loop that exist in an external module
User delete external module from survey
User should be warned that an incoherence exists in the survey
actual message
> Une erreur a été rencontrée lors de la visualisation du questionnaire :
> Unknown error during generation: fr.insee.eno.core.exceptions.technical.MappingException: SpEL mapping expression defined on property 'reference', for format DDI, in class fr.insee.eno.core.model.navigation.LinkedLoop, failed on object LoopTypeImpl[id=m209gdf0]
## Proposed Solution
Use the same message than the warning when saving survey
> Votre questionnaire comporte au moins une boucle, le dernier changement opéré peut générer des incohérences (ajout ou changement d'ordre d'une séquence ou sous-séquence, modification d'une question au sein d'une boucle), merci de consulter les boucles concernées de votre questionnaire, les modifier si nécessaire et les revalider.
## Attachments
https://github.com/user-attachments/assets/d8db163f-3264-4d46-be2a-84ef5c890578
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.