From: mkrylova Date: Wed, 23 Jun 2021 14:08:56 +0000 (+0300) Subject: 0032441: Draw Harness - command readstl doesn't print error message on failure X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=9749af25aef630244445d8b0a40ca616d0ec4ba8;p=occt-copy.git 0032441: Draw Harness - command readstl doesn't print error message on failure - added producing error message when passing an invalid file path --- diff --git a/src/RWStl/RWStl_Reader.cxx b/src/RWStl/RWStl_Reader.cxx index e67bc8ee4d..1ebfe92725 100644 --- a/src/RWStl/RWStl_Reader.cxx +++ b/src/RWStl/RWStl_Reader.cxx @@ -135,6 +135,7 @@ Standard_Boolean RWStl_Reader::Read (const char* theFile, OSD_OpenStream (aBuf, theFile, std::ios::in | std::ios::binary); if (!aBuf.is_open()) { + Message::SendFail (TCollection_AsciiString("Error: file '") + theFile + "' is not found"); return Standard_False; }