summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-02 22:47:07 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-03 10:33:56 +0100
commit1d2c51738bcc782a309455fa39f8b9baba3c9edc (patch)
treee34fbaf2e43d804a39ffca0f5b8d81e5ca5084e4
parentd68d28322159b2d377becfc3831670665707ea94 (diff)
make assert useful, state *what* url is invalid
-rw-r--r--basic/source/basmgr/basicmanagerrepository.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/basic/source/basmgr/basicmanagerrepository.cxx b/basic/source/basmgr/basicmanagerrepository.cxx
index 628f97eaaf..074ff8c5d4 100644
--- a/basic/source/basmgr/basicmanagerrepository.cxx
+++ b/basic/source/basmgr/basicmanagerrepository.cxx
@@ -315,7 +315,12 @@ namespace basic
// The first dir in the path as destination:
String aFileName( aAppBasic.getName() );
aAppBasic = INetURLObject( aAppBasicDir.GetToken(1) );
- DBG_ASSERT( aAppBasic.GetProtocol() != INET_PROT_NOT_VALID, "Invalid URL!" );
+ DBG_ASSERT(aAppBasic.GetProtocol() != INET_PROT_NOT_VALID,
+ rtl::OStringBuffer(RTL_CONSTASCII_STRINGPARAM("Invalid URL: \"")).
+ append(rtl::OUStringToOString(aAppBasicDir,
+ osl_getThreadTextEncoding())).
+ append('"').getStr()
+ );
aAppBasic.insertName( aFileName );
pBasicManager->SetStorageName( aAppBasic.PathToFileName() );