diff options
author | Mikhail Voitenko <mav@openoffice.org> | 2002-05-13 06:59:21 +0000 |
---|---|---|
committer | Mikhail Voitenko <mav@openoffice.org> | 2002-05-13 06:59:21 +0000 |
commit | de7028339b354bc955b3a1b08f8163e50fb8c05f (patch) | |
tree | b7a291d42845c00266d475071b6f2f6040f58922 /ucb | |
parent | e76c10cb23abf1347f542c7ece9417fd929078a2 (diff) |
#99253# tranfer error to the upper level
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/package/pkgcontent.cxx | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/ucb/source/ucp/package/pkgcontent.cxx b/ucb/source/ucp/package/pkgcontent.cxx index 592ac01639fb..5793106fcdc9 100644 --- a/ucb/source/ucp/package/pkgcontent.cxx +++ b/ucb/source/ucp/package/pkgcontent.cxx @@ -2,9 +2,9 @@ * * $RCSfile: pkgcontent.cxx,v $ * - * $Revision: 1.42 $ + * $Revision: 1.43 $ * - * last change: $Author: kso $ $Date: 2001-12-03 17:34:22 $ + * last change: $Author: mav $ $Date: 2002-05-13 07:59:21 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -702,7 +702,26 @@ uno::Any SAL_CALL Content::execute( // ( Not available at stream objects ) ////////////////////////////////////////////////////////////////// - flushData(); + if( !flushData() ) + { + uno::Any aProps + = uno::makeAny( + beans::PropertyValue( + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + "Uri")), + -1, + uno::makeAny(m_xIdentifier-> + getContentIdentifier()), + beans::PropertyState_DIRECT_VALUE)); + ucbhelper::cancelCommandExecution( + star::ucb::IOErrorCode_CANT_WRITE, + uno::Sequence< uno::Any >(&aProps, 1), + Environment, + rtl::OUString::createFromAscii( + "Cannot write file to disk!" ), + this ); + // Unreachable + } } else { |