From: jfa Date: Thu, 4 Oct 2007 12:11:23 +0000 (+0000) Subject: NPAL17002: EDF578: Problem when trying to import some ACIS and IGES files. Correct... X-Git-Tag: V3_2_8~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=46c358c5043acbc6ff95eadabe7fb346c5496c05;p=modules%2Fgeom.git NPAL17002: EDF578: Problem when trying to import some ACIS and IGES files. Correct error message. --- diff --git a/src/GEOMImpl/GEOMImpl_ExportDriver.cxx b/src/GEOMImpl/GEOMImpl_ExportDriver.cxx index 190116ccb..65e5abefa 100644 --- a/src/GEOMImpl/GEOMImpl_ExportDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_ExportDriver.cxx @@ -28,7 +28,7 @@ #include #include -#include +#include #ifdef WNT #include @@ -104,8 +104,11 @@ Standard_Integer GEOMImpl_ExportDriver::Execute(TFunction_Logbook& log) const if ( anExportLib ) fp = (funcPoint)GetProc( anExportLib, "Export" ); - if ( !fp ) - return 0; + if ( !fp ) { + TCollection_AsciiString aMsg = aFormatName; + aMsg += " plugin was not installed"; + Standard_Failure::Raise(aMsg.ToCString()); + } // perform the export int res = fp( aShape, aFileName, aFormatName ); diff --git a/src/GEOMImpl/GEOMImpl_ImportDriver.cxx b/src/GEOMImpl/GEOMImpl_ImportDriver.cxx index 0d1480f85..1e6455dc1 100644 --- a/src/GEOMImpl/GEOMImpl_ImportDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_ImportDriver.cxx @@ -29,7 +29,7 @@ #include -#include +#include #include #ifdef WNT @@ -98,8 +98,11 @@ Standard_Integer GEOMImpl_ImportDriver::Execute(TFunction_Logbook& log) const if ( anImportLib ) fp = (funcPoint)GetProc( anImportLib, "Import" ); - if ( !fp ) - return 0; + if ( !fp ) { + TCollection_AsciiString aMsg = aFormatName; + aMsg += " plugin was not installed"; + Standard_Failure::Raise(aMsg.ToCString()); + } // perform the import TCollection_AsciiString anError;