]> OCCT Git - occt-copy.git/commit
0031731: Draw Harness - colorize errors and exception messages
authorkgv <kgv@opencascade.com>
Mon, 24 Aug 2020 16:13:08 +0000 (19:13 +0300)
committerkgv <kgv@opencascade.com>
Tue, 25 Aug 2020 06:44:15 +0000 (09:44 +0300)
commitd99f0355e314ddb9a096158fffd995265f90ea81
tree3294e2a4d6a0b7751eaba640c911efcfb7054b42
parent1d99a2baaa614856d8ef8b0a9975af5c3bdf92c6
0031731: Draw Harness - colorize errors and exception messages

Draw_Interpretor, CommandCmd() - catched exceptions and messages put into Tcl string result
before throwing a Tcl exception (return 1) are now print in intense red (using Message::SendFail()).
Duplication of exception message in std::cout and Tcl output has been removed.

Draw Harness plugins have been updated to use either Message::SendFail() or theDI instead of std::cout/std::cerr
for printing colored error message before throwing a Tcl exception.
98 files changed:
src/BRepTest/BRepTest_BasicCommands.cxx
src/BRepTest/BRepTest_ExtremaCommands.cxx
src/BRepTest/BRepTest_FeatureCommands.cxx
src/BRepTest/BRepTest_FilletCommands.cxx
src/BRepTest/BRepTest_OtherCommands.cxx
src/BRepTest/BRepTest_PrimitiveCommands.cxx
src/BRepTest/BRepTest_SurfaceCommands.cxx
src/BRepTest/BRepTest_SweepCommands.cxx
src/BRepTest/BRepTest_TopologyCommands.cxx
src/DDF/DDF_BrowserCommands.cxx
src/DDataStd/DDataStd_BasicCommands.cxx
src/DDataStd/DDataStd_DrawDisplayCommands.cxx
src/DDataStd/DDataStd_NameCommands.cxx
src/DDataStd/DDataStd_TreeCommands.cxx
src/DDocStd/DDocStd_ApplicationCommands.cxx
src/DNaming/DNaming_BasicCommands.cxx
src/DNaming/DNaming_ModelingCommands.cxx
src/Draw/Draw.cxx
src/Draw/Draw_BasicCommands.cxx
src/Draw/Draw_GraphicCommands.cxx
src/Draw/Draw_Interpretor.cxx
src/Draw/Draw_Interpretor.hxx
src/Draw/Draw_PloadCommands.cxx
src/Draw/Draw_VariableCommands.cxx
src/DrawResources/TestCommands.tcl
src/GeometryTest/GeometryTest_APICommands.cxx
src/GeometryTest/GeometryTest_ContinuityCommands.cxx
src/GeometryTest/GeometryTest_CurveCommands.cxx
src/GeometryTest/GeometryTest_CurveTanCommands.cxx
src/GeomliteTest/GeomliteTest_API2dCommands.cxx
src/GeomliteTest/GeomliteTest_ModificationCommands.cxx
src/GeomliteTest/GeomliteTest_SurfaceCommands.cxx
src/MeshTest/MeshTest.cxx
src/SWDRAW/SWDRAW_ShapeFix.cxx
src/SWDRAW/SWDRAW_ShapeUpgrade.cxx
src/XDEDRAW/XDEDRAW_Colors.cxx
src/XDEDRAW/XDEDRAW_Common.cxx
src/XDEDRAW/XDEDRAW_Shapes.cxx
src/XSDRAWSTEP/XSDRAWSTEP.cxx
src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx
tests/blend/complex/F9
tests/blend/complex/G6
tests/bugs/caf/bug669
tests/bugs/fclasses/bug23497
tests/bugs/filling/bug22783
tests/bugs/filling/bug22786
tests/bugs/filling/bug23343
tests/bugs/modalg_2/bug293
tests/bugs/modalg_2/bug426
tests/bugs/modalg_4/bug8842_11
tests/bugs/modalg_4/bug8842_12
tests/bugs/modalg_4/bug8842_2
tests/bugs/modalg_4/bug8842_3
tests/bugs/modalg_4/bug8842_4
tests/bugs/modalg_5/bug23870_1
tests/bugs/modalg_5/bug23870_2
tests/bugs/modalg_5/bug23870_4
tests/bugs/modalg_7/bug25939
tests/bugs/modalg_7/bug26295
tests/bugs/modalg_7/bug26558
tests/bugs/modalg_7/bug30787
tests/bugs/moddata_1/bug103
tests/bugs/moddata_2/bug22910_1
tests/bugs/moddata_2/bug2569_2
tests/bugs/vis/bug346
tests/offset/faces_type_i/D7
tests/offset/faces_type_i/E7
tests/offset/faces_type_i/E8
tests/offset/faces_type_i/E9
tests/offset/faces_type_i/F2
tests/offset/faces_type_i/F3
tests/offset/faces_type_i/F4
tests/offset/faces_type_i/F5
tests/offset/faces_type_i/G5
tests/offset/faces_type_i/L1
tests/offset/faces_type_i/L2
tests/offset/faces_type_i/L3
tests/offset/faces_type_i/L4
tests/offset/faces_type_i/L5
tests/offset/faces_type_i/L6
tests/offset/faces_type_i/L7
tests/offset/faces_type_i/L8
tests/offset/faces_type_i/L9
tests/offset/faces_type_i/M1
tests/offset/faces_type_i/M3
tests/offset/faces_type_i/N1
tests/offset/faces_type_i/N2
tests/offset/shape_type_i/C5
tests/offset/shape_type_i/D6
tests/offset/shape_type_i/D7
tests/offset/shape_type_i/G2
tests/offset/shape_type_i/G3
tests/offset/shape_type_i/G4
tests/pipe/bugs/bug24909_1
tests/pipe/bugs/bug24909_2
tests/pipe/bugs/bug25110
tests/pipe/bugs/bug26088
tests/thrusection/bugs/bug24997