summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-10-08 21:42:41 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-10-08 21:42:58 +0200
commit9a35c05ac58ac2d3e6d76bf21e3cce9d407e7997 (patch)
tree6d310958edbfcc381bf7bd56a101ab0c301be98d /desktop
parent6bc7b0748741d58724310e8fd09d31a5557aa031 (diff)
desktop: let --convert-to dump its exception message on stderr
Change-Id: Ic906740ddeab04a9acfee997a31a2249f23de65f
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/dispatchwatcher.cxx7
1 files changed, 5 insertions, 2 deletions
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 )