From 81b56ed43d2da488afc395270373c96af868b5ec Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Wed, 10 Oct 2018 17:31:49 +0200 Subject: [PATCH] more information on exception on mesh export --- src/MEDWrapper/MED_Wrapper.cxx | 2 +- src/SMESHGUI/SMESHGUI.cxx | 2 +- src/SMESHGUI/SMESH_msg_en.ts | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) 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 -- 2.30.2