Kaydet (Commit) de900ebd authored tarafından Laurent Godard's avatar Laurent Godard

convert-to : display error messages in console fdo#88326

- source file does not exist
- requested export filter does not exist and we use default filter (still process though)

Change-Id: I92031ea305e81927357acfc352dbe5a5da205b0d
üst 2015654c
...@@ -139,7 +139,7 @@ const SfxFilter* impl_getExportFilterFromUrl( const rtl::OUString& rUrl, const r ...@@ -139,7 +139,7 @@ const SfxFilter* impl_getExportFilterFromUrl( const rtl::OUString& rUrl, const r
pFilter = impl_lookupExportFilterForUrl( rUrl, rFactory ); pFilter = impl_lookupExportFilterForUrl( rUrl, rFactory );
if ( !pFilter ) if ( !pFilter )
{ {
SAL_INFO( "desktop.app", "no export filter for " << rUrl << "found, using the default filter for " << rFactory ); std::cerr << "Error: no export filter for " << rUrl << " found, now using the default filter for " << rFactory << "\n";
pFilter = SfxFilter::GetDefaultFilterFromFactory( rFactory ); pFilter = SfxFilter::GetDefaultFilterFromFactory( rFactory );
} }
...@@ -565,7 +565,7 @@ bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatchRequ ...@@ -565,7 +565,7 @@ bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatchRequ
} }
catch (const Exception& rException) catch (const Exception& rException)
{ {
std::cerr << "Error: Please reverify input parameters..."; std::cerr << "Error: Please verify input parameters...";
if (!rException.Message.isEmpty()) if (!rException.Message.isEmpty())
std::cerr << " (" << rException.Message << ")"; std::cerr << " (" << rException.Message << ")";
std::cerr << std::endl; std::cerr << std::endl;
...@@ -663,7 +663,7 @@ bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatchRequ ...@@ -663,7 +663,7 @@ bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatchRequ
} }
else else
{ {
// place error message here ... std::cerr << ("Error: source file could not be loaded\n");
} }
// remove the document // remove the document
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment