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.
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
Proposed Solution
Use the same message than the warning when saving survey
Attachments
https://github.com/user-attachments/assets/d8db163f-3264-4d46-be2a-84ef5c890578