X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_STEPImport.cpp;h=837237a79c761ceb7fdd886a2e0b2debffd30913;hb=a55586483e5dccc5466d6ec241e2147e210d839f;hp=93c3c26f65672041380cae2df3cf6812a062d299;hpb=a94fc319f2aa64b43c9a73b5ff7063923648faec;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_STEPImport.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_STEPImport.cpp index 93c3c26f6..837237a79 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_STEPImport.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_STEPImport.cpp @@ -186,9 +186,8 @@ std::shared_ptr STEPImport(const std::string& theFileName, aResShape.Nullify(); } } - catch (Standard_Failure) { - Handle(Standard_Failure) aFail = Standard_Failure::Caught(); - theError = aFail->GetMessageString(); + catch (Standard_Failure const& anException) { + theError = anException.GetMessageString(); aResShape.Nullify(); } // Return previous locale