summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-08-08 17:45:49 +0900
committerTomaž Vajngerl <quikee@gmail.com>2019-08-08 12:50:58 +0200
commit502f0690c362518681723e029d810762f652c675 (patch)
treefa09878f32fef9a976b55bc7fea667397e303f50 /desktop
parent5349e558cf60c6d124fc9a5a4aa41578a3903088 (diff)
lok: Output a SAL_WARN only if message is not empty
Because we call SetLastExceptionMsg with an empty message when we want to reset the exception message and this happens all the time in the LOK code. Change-Id: Iead1b561d303d610db5e02f79a7af6c72b43834a Reviewed-on: https://gerrit.libreoffice.org/77144 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index e1640836bf3c..a2a6ba56f496 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -171,7 +171,7 @@ static std::weak_ptr< LibreOfficeKitDocumentClass > gDocumentClass;
static void SetLastExceptionMsg(const OUString& s = OUString())
{
- SAL_WARN("lok", "lok exception " + s);
+ SAL_WARN_IF(!s.isEmpty(), "lok", "lok exception '" + s + "'");
if (gImpl)
gImpl->maLastExceptionMsg = s;
}