From: Jean-Philippe ARGAUD Date: Mon, 29 Sep 2014 09:32:50 +0000 (+0200) Subject: Improving user errors raising X-Git-Tag: V7_5_0rc1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=73c237b57667149dfab3b907eab025de21af0c81;p=modules%2Fadao.git Improving user errors raising --- 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()