Kaydet (Commit) 7b01977c authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Improve error reporting

Change-Id: I430344cfe70134fb18bd884056261b11924c71d0
üst 7068cad9
......@@ -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 >();
}
//--------------------------------------------------------------------------------------------------
......
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