summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2006-11-06 13:54:06 +0000
committerKurt Zenker <kz@openoffice.org>2006-11-06 13:54:06 +0000
commitf27d465f6ee3cc7b9586c77656f4ecaa2b489c44 (patch)
tree2c753c821b690ce41de0ec1682aa49988fc8804d /idl
parentb87b8c3137bddcaf13f064fbf0210f5c90298279 (diff)
INTEGRATION: CWS sb63 (1.5.6); FILE MERGED
2006/10/20 08:18:18 sb 1.5.6.1: #i62636# Patch by vq: improved error reporting.
Diffstat (limited to 'idl')
-rw-r--r--idl/source/prj/svidl.cxx50
1 files changed, 36 insertions, 14 deletions
diff --git a/idl/source/prj/svidl.cxx b/idl/source/prj/svidl.cxx
index c0e2d9034b4a..bb118c6de2a4 100644
--- a/idl/source/prj/svidl.cxx
+++ b/idl/source/prj/svidl.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: svidl.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: obo $ $Date: 2006-09-16 12:49:42 $
+ * last change: $Author: kz $ $Date: 2006-11-06 14:54:06 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -326,72 +326,94 @@ int cdecl main ( int argc, char ** argv)
{
BOOL bErr = FALSE;
BOOL bDoMove = aCommand.aTargetFile.Len() == 0;
- String aErrFile;
+ String aErrFile, aErrFile2;
if( !bErr && aCommand.aListFile.Len() )
{
bErr |= !FileMove_Impl( aCommand.aListFile, aTmpListFile, bDoMove );
- if( bErr )
+ if( bErr ) {
aErrFile = aCommand.aListFile;
+ aErrFile2 = aTmpListFile;
+ }
}
if( !bErr && aCommand.aSlotMapFile.Len() )
{
bErr |= !FileMove_Impl( aCommand.aSlotMapFile, aTmpSlotMapFile, bDoMove );
- if( bErr )
+ if( bErr ) {
aErrFile = aCommand.aSlotMapFile;
+ aErrFile2 = aTmpSlotMapFile;
+ }
}
if( !bErr && aCommand.aSfxItemFile.Len() )
{
bErr |= !FileMove_Impl( aCommand.aSfxItemFile, aTmpSfxItemFile, bDoMove );
- if( bErr )
+ if( bErr ) {
aErrFile = aCommand.aSfxItemFile;
+ aErrFile2 = aTmpSfxItemFile;
+ }
}
if( !bErr && aCommand.aDataBaseFile.Len() )
{
bErr |= !FileMove_Impl( aCommand.aDataBaseFile, aTmpDataBaseFile, bDoMove );
- if( bErr )
+ if( bErr ) {
aErrFile = aCommand.aDataBaseFile;
+ aErrFile2 = aTmpDataBaseFile;
+ }
}
if( !bErr && aCommand.aCallingFile.Len() )
{
bErr |= !FileMove_Impl( aCommand.aCallingFile, aTmpCallingFile, bDoMove );
- if( bErr )
+ if( bErr ) {
aErrFile = aCommand.aCallingFile;
+ aErrFile2 = aTmpCallingFile;
+ }
}
if( !bErr && aCommand.aCxxFile.Len() )
{
bErr |= !FileMove_Impl( aCommand.aCxxFile, aTmpCxxFile, bDoMove );
- if( bErr )
+ if( bErr ) {
aErrFile = aCommand.aCxxFile;
+ aErrFile2 = aTmpCxxFile;
+ }
}
if( !bErr && aCommand.aHxxFile.Len() )
{
bErr |= !FileMove_Impl( aCommand.aHxxFile, aTmpHxxFile, bDoMove );
- if( bErr )
+ if( bErr ) {
aErrFile = aCommand.aHxxFile;
+ aErrFile2 = aTmpHxxFile;
+ }
}
if( !bErr && aCommand.aHelpIdFile.Len() )
{
bErr |= !FileMove_Impl( aCommand.aHelpIdFile, aTmpHelpIdFile, bDoMove );
- if( bErr )
+ if( bErr ) {
aErrFile = aCommand.aHelpIdFile;
+ aErrFile2 = aTmpHelpIdFile;
+ }
}
if( !bErr && aCommand.aCSVFile.Len() )
{
bErr |= !FileMove_Impl( aCommand.aCSVFile, aTmpCSVFile, bDoMove );
- if( bErr )
+ if( bErr ) {
aErrFile = aCommand.aCSVFile;
+ aErrFile2 = aTmpCSVFile;
+ }
}
if( !bErr && aCommand.aDocuFile.Len() )
{
bErr |= !FileMove_Impl( aCommand.aDocuFile, aTmpDocuFile, bDoMove );
- if( bErr )
+ if( bErr ) {
aErrFile = aCommand.aDocuFile;
+ aErrFile2 = aTmpDocuFile;
+ }
}
if( bErr )
{
nExit = -1;
- ByteString aStr = "cannot write file: ";
+ ByteString aStr = "cannot move file from: ";
+ aStr += ByteString( aErrFile2, RTL_TEXTENCODING_UTF8 );
+ aStr += "\n to file: ";
aStr += ByteString( aErrFile, RTL_TEXTENCODING_UTF8 );
fprintf( stderr, "%s\n", aStr.GetBuffer() );
}