summaryrefslogtreecommitdiff
path: root/cpputools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-12-18 14:18:28 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-12-18 16:23:23 +0100
commit7b01977c7a50ab5b16d894a0760d61bf04970766 (patch)
treeb413a7b88461f746f6f0952e354d39c68fe6e93b /cpputools
parent7068cad92490e45c75214ba33a9102df24b6653d (diff)
Improve error reporting
Change-Id: I430344cfe70134fb18bd884056261b11924c71d0
Diffstat (limited to 'cpputools')
-rw-r--r--cpputools/source/unoexe/unoexe.cxx16
1 files changed, 9 insertions, 7 deletions
diff --git a/cpputools/source/unoexe/unoexe.cxx b/cpputools/source/unoexe/unoexe.cxx
index db3e63b8d36e..e6590a3fedfc 100644
--- a/cpputools/source/unoexe/unoexe.cxx
+++ b/cpputools/source/unoexe/unoexe.cxx
@@ -350,18 +350,20 @@ static Reference< XSimpleRegistry > openRegistry(
if (xNewReg->isValid())
return xNewReg;
else
+ {
xNewReg->close();
+ out( "\n> warning: cannot open registry " );
+ out( rURL );
+ }
}
- catch (Exception &)
+ catch (Exception & e)
{
+ out( "\n> warning: cannot open registry " );
+ out( rURL );
+ out( ": " );
+ out( e.Message );
}
- out( "\n> warning: cannot open registry \"" );
- out( rURL );
- if (bReadOnly)
- out( "\" for reading, ignoring!" );
- else
- out( "\" for reading and writing, ignoring!" );
return Reference< XSimpleRegistry >();
}
//--------------------------------------------------------------------------------------------------