From: Paul RASCLE Date: Wed, 10 Oct 2018 15:31:49 +0000 (+0200) Subject: more information on exception on mesh export X-Git-Tag: V9_2_0a2~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=81b56ed43d2da488afc395270373c96af868b5ec;p=modules%2Fsmesh.git more information on exception on mesh export --- diff --git a/src/MEDWrapper/MED_Wrapper.cxx b/src/MEDWrapper/MED_Wrapper.cxx index cc0e21b63..3539fb929 100644 --- a/src/MEDWrapper/MED_Wrapper.cxx +++ b/src/MEDWrapper/MED_Wrapper.cxx @@ -2171,7 +2171,7 @@ namespace MED if (theErr) *theErr = aRet; else if (aRet < 0) - EXCEPTION(std::runtime_error, "SetCellInfo - MEDmeshElementWr(...)"); + EXCEPTION(std::runtime_error, "SetCellInfo - MEDmeshElementWr(...), ret="<< aRet); } //---------------------------------------------------------------------------- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 99ae22dd2..9058ebcef 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -989,7 +989,7 @@ namespace wc.suspend(); SUIT_MessageBox::warning(SMESHGUI::desktop(), QObject::tr("SMESH_WRN_WARNING"), - QObject::tr("SMESH_EXPORT_FAILED")); + QObject::tr("SMESH_EXPORT_FAILED") + SalomeApp_Tools::ExceptionToString(S_ex)); wc.resume(); } } diff --git a/src/SMESHGUI/SMESH_msg_en.ts b/src/SMESHGUI/SMESH_msg_en.ts index bd20246ad..d286d6c15 100644 --- a/src/SMESHGUI/SMESH_msg_en.ts +++ b/src/SMESHGUI/SMESH_msg_en.ts @@ -1780,7 +1780,8 @@ so that the application may crash. Do you wish to continue visualization? SMESH_EXPORT_FAILED Mesh export failed. -Probably, there is not enough space on disk. +Probably, there is not enough space on disk, or the version of MED file used is not compatible with the mesh. + SMESH_EXPORT_MED_DUPLICATED_GRP