X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FXSDRAWSTLVRML%2FXSDRAWSTLVRML.cxx;h=cf86dc0b4ffff29104f2dc15faaee7aa0003d9d5;hb=c42ef16585fc1f12abf582b48796343af49ad56f;hpb=1f44d29a0fc71e8f34aa8d221d34883624c1e26a diff --git a/src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx b/src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx index eee2583a78..cf86dc0b4f 100644 --- a/src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx +++ b/src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx @@ -532,7 +532,10 @@ static Standard_Integer writevrml case 2: writer.SetRepresentation(VrmlAPI_BothRepresentation); break; } - writer.Write(aShape, argv[2], aVersion); + if (!writer.Write(aShape, argv[2], aVersion)) + { + di << "Error: File " << argv[2] << " was not written\n"; + } return 0; }