From 8e5d3f16aa0e2422065840b24cce0b701cca1cfe Mon Sep 17 00:00:00 2001 From: Jean-Philippe ARGAUD Date: Mon, 29 Sep 2014 11:32:50 +0200 Subject: [PATCH] Improving user errors raising --- src/daSalome/daYacsIntegration/daOptimizerLoop.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/daSalome/daYacsIntegration/daOptimizerLoop.py b/src/daSalome/daYacsIntegration/daOptimizerLoop.py index 60c6416..f3941e0 100644 --- a/src/daSalome/daYacsIntegration/daOptimizerLoop.py +++ b/src/daSalome/daYacsIntegration/daOptimizerLoop.py @@ -342,7 +342,10 @@ class AssimilationAlgorithm_asynch(SALOMERuntime.OptimizerAlgASync): # Start Assimilation Study print "Launching the analyse\n" - self.ADD.analyze() + try: + self.ADD.analyze() + except Exception as e: + raise ValueError("during analyse, the following error occurs:\n\n%s\n\nSee also the potential messages, which can show the origin of the above error, in the YACS GUI or in the launching terminal."%(str(e),)) # Assimilation Study is finished self.pool.destroyAll() -- 2.39.2