From e64e4e373e43e9490dda4b778424dbef6d6f1299 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 30 Jun 2022 11:45:11 +0200 Subject: tdf#149785 Read Error importing document after commit 04073c5fedd33654f242fecb7e39afb07cf0e273 Author: Noel Grandin Date: Tue Jun 21 13:17:09 2022 +0200 replace oox::OptValue with std::optional and add a SAL_WARN to make this easier to diagnose in the future Change-Id: Ia5be0b82e3a5df34f50bc8a2decb1de98e0c5556 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136665 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sfx2/source/doc/objstor.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sfx2') diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index 288b6a7ae6a9..6e406d332f9a 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -2333,6 +2333,7 @@ bool SfxObjectShell::ImportFrom(SfxMedium& rMedium, { const char *msg = e.what(); const OUString sError(msg, strlen(msg), RTL_TEXTENCODING_ASCII_US); + SAL_WARN("sfx.doc", "exception importing " << sError); SetError(*new StringErrorInfo(ERRCODE_SFX_DOLOADFAILED, sError, DialogMask::ButtonsOk | DialogMask::MessageError)); } -- cgit