diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-02-16 11:40:48 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-02-18 13:36:13 +0100 |
commit | 653e9627828adafc833fd179cea495f4b6e409ce (patch) | |
tree | 1084d1a8074ee1daf9e38724fc5eeea9a1d8bab3 /ucb | |
parent | 7dd8f8aace536a8e60e87e61ee1d90d61fba15eb (diff) |
More verbose GIO transfer failure information
Change-Id: Id379a545017d1574e1253ef7c1a9dac49f87b043
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111105
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/gio/gio_content.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx index 5a5bf05a32cd..cfce60270c27 100644 --- a/ucb/source/ucp/gio/gio_content.cxx +++ b/ucb/source/ucp/gio/gio_content.cxx @@ -1098,8 +1098,13 @@ void Content::transfer( const css::ucb::TransferInfo& aTransferInfo, const css:: bSuccess = g_file_copy(pSource, pDest, DEFAULT_COPYDATA_FLAGS, nullptr, nullptr, nullptr, &pError); g_object_unref(pSource); g_object_unref(pDest); - if (!bSuccess) + if (!bSuccess) { + SAL_INFO( + "ucb.ucp.gio", + "transfer <" << aTransferInfo.SourceURL << "> to <" << sDest << "> (MoveData = " + << int(aTransferInfo.MoveData) << ") failed with \"" << pError->message << "\""); ucbhelper::cancelCommandExecution(mapGIOError(pError), xEnv); + } } css::uno::Sequence< css::ucb::ContentInfo > Content::queryCreatableContentsInfo( |