diff options
author | Nils Fuhrmann <nf@openoffice.org> | 2001-09-20 15:21:24 +0000 |
---|---|---|
committer | Nils Fuhrmann <nf@openoffice.org> | 2001-09-20 15:21:24 +0000 |
commit | 8a45e12c8e4b88bd63326ee7a9e0ddb3116394a4 (patch) | |
tree | eab9c7930e5a01955274948d55759faf7ed7a22a /tools/bootstrp/prj.cxx | |
parent | Multiple fixes for dependency handling (diff) | |
download | core-8a45e12c8e4b88bd63326ee7a9e0ddb3116394a4.tar.gz core-8a45e12c8e4b88bd63326ee7a9e0ddb3116394a4.zip |
Added error link
Diffstat (limited to 'tools/bootstrp/prj.cxx')
-rw-r--r-- | tools/bootstrp/prj.cxx | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/tools/bootstrp/prj.cxx b/tools/bootstrp/prj.cxx index 0902b5c0ec80..8c7ac268d1bd 100644 --- a/tools/bootstrp/prj.cxx +++ b/tools/bootstrp/prj.cxx @@ -2,9 +2,9 @@ * * $RCSfile: prj.cxx,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: nf $ $Date: 2001-09-20 15:45:40 $ + * last change: $Author: nf $ $Date: 2001-09-20 16:21:24 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -100,8 +100,6 @@ #endif #endif -Link Star::aDBNotFoundHdl; - // // class SimpleConfig // @@ -1330,6 +1328,12 @@ USHORT StarWriter::Write( String aFileName ) SvFileStream aFileStream; aFileStream.Open( aFileName, STREAM_WRITE | STREAM_TRUNC); + if ( !aFileStream.IsOpen() && aFileIOErrorHdl.IsSet()) { + String sError( String::CreateFromAscii( "Error: Unable to open \"" )); + sError += aFileName; + sError += String::CreateFromAscii( "for writing!" ); + aFileIOErrorHdl.Call( &sError ); + } if ( Count() > 0 ) { @@ -1370,6 +1374,13 @@ USHORT StarWriter::WriteMultiple( String rSourceRoot ) SvFileStream aFileStream; aFileStream.Open( aEntry.GetFull(), STREAM_WRITE | STREAM_TRUNC); + if ( !aFileStream.IsOpen() && aFileIOErrorHdl.IsSet()) { + String sError( String::CreateFromAscii( "Error: Unable to open \"" )); + sError += aEntry.GetFull(); + sError += String::CreateFromAscii( "for writing!" ); + aFileIOErrorHdl.Call( &sError ); + } + WritePrj( pPrj, aFileStream ); aFileStream.Close(); |