[Libreoffice-commits] core.git: desktop/source
Miklos Vajna
vmiklos at collabora.co.uk
Wed Oct 8 12:43:33 PDT 2014
desktop/source/app/dispatchwatcher.cxx | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 9a35c05ac58ac2d3e6d76bf21e3cce9d407e7997
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Wed Oct 8 21:42:41 2014 +0200
desktop: let --convert-to dump its exception message on stderr
Change-Id: Ic906740ddeab04a9acfee997a31a2249f23de65f
diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx
index f26d17c..5b6e911 100644
--- a/desktop/source/app/dispatchwatcher.cxx
+++ b/desktop/source/app/dispatchwatcher.cxx
@@ -562,9 +562,12 @@ bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatchRequ
{
xStorable->storeToURL( aOutFile, conversionProperties );
}
- catch (const Exception&)
+ catch (const Exception& rException)
{
- fprintf( stderr, "Error: Please reverify input parameters...\n" );
+ std::cerr << "Error: Please reverify input parameters...";
+ if (!rException.Message.isEmpty())
+ std::cerr << " (" << rException.Message << ")";
+ std::cerr << std::endl;
}
if( aDispatchRequest.aRequestType == REQUEST_CAT )
More information about the Libreoffice-commits
mailing list