From 46c358c5043acbc6ff95eadabe7fb346c5496c05 Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 4 Oct 2007 12:11:23 +0000 Subject: [PATCH] NPAL17002: EDF578: Problem when trying to import some ACIS and IGES files. Correct error message. --- src/GEOMImpl/GEOMImpl_ExportDriver.cxx | 9 ++++++--- src/GEOMImpl/GEOMImpl_ImportDriver.cxx | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) 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; -- 2.39.2