more information on exception on mesh export

This commit is contained in:
Paul RASCLE 2018-10-10 17:31:49 +02:00
parent a63fc78c25
commit 81b56ed43d
3 changed files with 4 additions and 3 deletions

View File

@ -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);
}
//----------------------------------------------------------------------------

View File

@ -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();
}
}

View File

@ -1780,7 +1780,8 @@ so that the application may crash. Do you wish to continue visualization?</trans
<message>
<source>SMESH_EXPORT_FAILED</source>
<translation>Mesh export failed.
Probably, there is not enough space on disk.</translation>
Probably, there is not enough space on disk, or the version of MED file used is not compatible with the mesh.
</translation>
</message>
<message>
<source>SMESH_EXPORT_MED_DUPLICATED_GRP</source>