From f8b6eedc56ee6176c420ff83b1dcd617d5c2ef57 Mon Sep 17 00:00:00 2001
From: David Dorchies <david.dorchies@irstea.fr>
Date: Thu, 24 Sep 2020 17:47:33 +0200
Subject: [PATCH] Fix(PreBarrage): Warning on non convergence instead of error

Fix jalhyd#275
---
 src/locale/messages.en.json | 2 +-
 src/locale/messages.fr.json | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/locale/messages.en.json b/src/locale/messages.en.json
index d27df7fb9..cec02213c 100644
--- a/src/locale/messages.en.json
+++ b/src/locale/messages.en.json
@@ -52,7 +52,7 @@
     "ERROR_PARAMDEF_VALUE_UNDEFINED": "value of '%symbol%' parameter is undefined",
     "ERROR_PARAMDOMAIN_INTERVAL_BOUNDS": "invalid %minValue%/%maxValue% min/max boundaries for 'interval' parameter definition domain",
     "ERROR_PARAMDOMAIN_INVALID": "parameter '%symbol%: non supported '%domain%' definition domain",
-    "ERROR_PREBARRAGE_NON_CONVERGENCE": "Pre-dam: non-convergence of the calculation",
+    "WARNING_PREBARRAGE_NON_CONVERGENCE": "Pre-dam: calculation converged with a water elevation precision of %precision%&nbsp;m",
     "ERROR_PREBARRAGE_STRUCTURE_ZDV_INF_ZF": "Apron elevation of device #%ns% is lower than bottom elevation of upstream basin of wall %cub%-%cdb%",
     "ERROR_PREBARRAGE_Z2_SUP_Z1": "Downstream water elevation is greater than upstream water elevation",
     "ERROR_PROBLEM_LOADING_SESSION": "Session loaded, with errors",
diff --git a/src/locale/messages.fr.json b/src/locale/messages.fr.json
index e393b9474..565342de6 100644
--- a/src/locale/messages.fr.json
+++ b/src/locale/messages.fr.json
@@ -52,7 +52,7 @@
     "ERROR_PARAMDEF_VALUE_UNDEFINED": "La valeur du paramètre %symbol% n'est pas définie",
     "ERROR_PARAMDOMAIN_INTERVAL_BOUNDS": "Les bornes (%minValue%/%maxValue%) de l'intervalle sont incorrectes",
     "ERROR_PARAMDOMAIN_INVALID": "Paramètre '%symbol%'&nbsp;: le domaine de définition '%domain%' est incorrect",
-    "ERROR_PREBARRAGE_NON_CONVERGENCE": "Pré-barrage&nbsp;: non convergence du calcul",
+    "WARNING_PREBARRAGE_NON_CONVERGENCE": "Pré-barrage&nbsp;: le calcul a convergé avec une précision des cotes de %precision%&nbsp;m",
     "ERROR_PREBARRAGE_STRUCTURE_ZDV_INF_ZF": "Cote de radier de l'ouvrage n°%ns% inférieure à la cote de fond du bassin amont de la cloison %cub%-%cdb%",
     "ERROR_PREBARRAGE_Z2_SUP_Z1": "Cote de l'eau aval supérieure à la cote de l'eau amont",
     "ERROR_PROBLEM_LOADING_SESSION": "Session chargée, avec des erreurs",
-- 
GitLab