Salome HOME
Merge branch 'V9_11_BR'
[modules/smesh.git] / src / SMESH_I / SMESH_Homard_i.cxx
index 88a6cf88cdb93f84291638e11ba4eeb87fb232e5..0f1fb1c0c06a5d7da52c84aa6ea3c2c4760ed148 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2021  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -591,9 +591,10 @@ void HOMARD_Cas_i::AddBoundaryGroup(const char* BoundaryName, const char* Group)
     //
     SALOME::ExceptionStruct es;
     es.type = SALOME::BAD_PARAM;
-#ifdef _DEBUG_
-    texte += "\nInvalid AddBoundaryGroup";
-#endif
+    
+    if (SALOME::VerbosityActivated())
+      texte += "\nInvalid AddBoundaryGroup";
+
     INFOS(texte);
     es.text = CORBA::string_dup(texte.c_str());
     throw SALOME::SALOME_Exception(es);