summaryrefslogtreecommitdiff
path: root/transex3
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2006-01-03 13:45:56 +0000
committerKurt Zenker <kz@openoffice.org>2006-01-03 13:45:56 +0000
commit9351a95b3eeed6dbcf0b0e79611fa1040f87541c (patch)
tree4bf4c3854e660f8118912518534594d8fb60f3fc /transex3
parent543cfe8c02786d1f85989af222a37ae627e26a77 (diff)
INTEGRATION: CWS ivo13 (1.34.38); FILE MERGED
2005/12/10 18:39:12 ihi 1.34.38.2: RESYNC: (1.34-1.36); FILE MERGED 2005/12/08 19:23:03 ihi 1.34.38.1: #i58955# exit ( 13 ) on error
Diffstat (limited to 'transex3')
-rw-r--r--transex3/source/cfgmerge.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/transex3/source/cfgmerge.cxx b/transex3/source/cfgmerge.cxx
index 419dca62cc8e..86878f0fb3e1 100644
--- a/transex3/source/cfgmerge.cxx
+++ b/transex3/source/cfgmerge.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: cfgmerge.cxx,v $
*
- * $Revision: 1.36 $
+ * $Revision: 1.37 $
*
- * last change: $Author: hr $ $Date: 2005-09-23 14:28:23 $
+ * last change: $Author: kz $ $Date: 2006-01-03 14:45:56 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -251,9 +251,11 @@ extern FILE *GetCfgFile()
pFile = fopen( sInputFileName.GetBuffer(), "r" );
sUsedTempFile = String::CreateFromAscii("");
}
- if ( !pFile )
+ if ( !pFile ){
fprintf( stderr, "Error: Could not open file %s\n",
sInputFileName.GetBuffer());
+ exit( 13 );
+ }
else {
// this is a valid file which can be opened, so
// create path to project root
@@ -568,6 +570,7 @@ int CfgParser::ExecuteAnalyzedToken( int nToken, char *pToken )
ByteString sError( "Missplaced close tag: " );
sError += sToken;
Error( sError );
+ exit ( 13 );
}
break;
@@ -653,11 +656,12 @@ CfgOutputParser::CfgOutputParser( const ByteString &rOutputFile )
pOutputStream->SetStreamCharSet( RTL_TEXTENCODING_UTF8 );
if ( !pOutputStream->IsOpen()) {
- ByteString sError( "Unable to open output file: " );
+ ByteString sError( "ERROR: Unable to open output file: " );
sError += rOutputFile;
Error( sError );
delete pOutputStream;
pOutputStream = NULL;
+ exit( 13 );
}
}