From 9a35c05ac58ac2d3e6d76bf21e3cce9d407e7997 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 8 Oct 2014 21:42:41 +0200 Subject: desktop: let --convert-to dump its exception message on stderr Change-Id: Ic906740ddeab04a9acfee997a31a2249f23de65f --- desktop/source/app/dispatchwatcher.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'desktop') diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx index f26d17c6bcbf..5b6e911fc6d8 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 ) -- cgit v1.2.3