mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
0032441: Draw Harness - command readstl doesn't print error message on failure
- added producing error message when passing an invalid file path
This commit is contained in:
parent
0770d850d6
commit
9749af25ae
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user