summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-11-20 13:32:05 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-11-20 13:32:21 +0100
commitc0ae8f9a03ab292de8bfdce29c3ccbb9965a3068 (patch)
treee3186f7c43d8b5164f810e3a34f504fc087c6395 /svtools
parent50b4b0db8bcf33e26dc332d558f0e03c65ad742b (diff)
Improve error reporting
Change-Id: Icdafde88e3984cf3689f591216a890392892dfce
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/templwin.cxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/svtools/source/contnr/templwin.cxx b/svtools/source/contnr/templwin.cxx
index 714667f91c33..011dff19961d 100644
--- a/svtools/source/contnr/templwin.cxx
+++ b/svtools/source/contnr/templwin.cxx
@@ -1455,8 +1455,11 @@ void SvtDocumentTemplateDialog::InitImpl( )
aPackageBtn.SetClickHdl( LINK( this, SvtDocumentTemplateDialog, PackageHdl_Impl ) );
aPackageBtn.Enable(xSyncDbusSessionHelper.is());
}
- catch(...)
+ catch (Exception & e)
{
+ SAL_INFO(
+ "svtools.contnr",
+ "disable Install Template Pack, caught " << e.Message);
aPackageBtn.Enable(false);
}
Link aLink = LINK( this, SvtDocumentTemplateDialog, OKHdl_Impl );
@@ -1656,8 +1659,12 @@ IMPL_LINK_NOARG(SvtDocumentTemplateDialog, PackageHdl_Impl)
::rtl::OUString sInteraction("");
xSyncDbusSessionHelper->InstallPackageNames(0, vPackages, sInteraction);
}
- catch(...)
- { }
+ catch (Exception & e)
+ {
+ SAL_INFO(
+ "svtools.contnr",
+ "trying Install Template Pack, caught " << e.Message);
+ }
return 0;
}