From 9749af25aef630244445d8b0a40ca616d0ec4ba8 Mon Sep 17 00:00:00 2001 From: mkrylova Date: Wed, 23 Jun 2021 17:08:56 +0300 Subject: [PATCH] 0032441: Draw Harness - command readstl doesn't print error message on failure - added producing error message when passing an invalid file path --- src/RWStl/RWStl_Reader.cxx | 1 + 1 file changed, 1 insertion(+) 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; }