projects
/
occt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
0030180: Data Exchange - VrmlAPI_Writer is expected to return export state
[occt.git]
/
src
/
XSDRAWSTLVRML
/
XSDRAWSTLVRML.cxx
diff --git
a/src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx
b/src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx
index
eee2583
..
cf86dc0
100644
(file)
--- 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;
}