]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Improving user errors raising V7_5_0rc1
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Mon, 29 Sep 2014 09:32:50 +0000 (11:32 +0200)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Mon, 29 Sep 2014 09:32:50 +0000 (11:32 +0200)
src/daSalome/daYacsIntegration/daOptimizerLoop.py

index 60c64168dc356b19a2990317bbcf9d861fccf1d2..f3941e0033755bb2dd579def5c1b644f9b405d84 100644 (file)
@@ -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()