summaryrefslogtreecommitdiff
path: root/TAO/CIAO/tools
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-06-29 18:13:11 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-06-29 18:13:11 +0000
commit783ed8abe8e4ce68814e039e66373fbc6bb79fd6 (patch)
tree60f04308610e5363833170b80b6ddd0358b8b252 /TAO/CIAO/tools
parent5415a5190090aa530385a6bdad28c2114e5b6cad (diff)
downloadATCD-783ed8abe8e4ce68814e039e66373fbc6bb79fd6.tar.gz
ChangeLogTag: Wed Jun 29 18:09:11 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'TAO/CIAO/tools')
-rw-r--r--TAO/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/TAO/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp b/TAO/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp
index 6bd9935452b..99a9f7bc7db 100644
--- a/TAO/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp
+++ b/TAO/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp
@@ -1125,7 +1125,15 @@ idl3_to_idl2_visitor::visit_root (AST_Root *node)
}
target_name += fn;
- this->os->open (target_name.c_str ());
+
+ if (this->os->open (target_name.c_str ()) != 0)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "Failed to open file %s for writing.\n",
+ target_name.c_str ()));
+
+ return -1;
+ }
os->gen_ifndef_string (fn.c_str (), "_TAO_IDL_", "_IDL_");