diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-02 22:47:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-03 10:33:56 +0100 |
commit | 1d2c51738bcc782a309455fa39f8b9baba3c9edc (patch) | |
tree | e34fbaf2e43d804a39ffca0f5b8d81e5ca5084e4 | |
parent | d68d28322159b2d377becfc3831670665707ea94 (diff) |
make assert useful, state *what* url is invalid
-rw-r--r-- | basic/source/basmgr/basicmanagerrepository.cxx | 7 |
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() ); |