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 | 76f27b1bc52892d53f7b2a0429a50d2c56a07081 (patch) | |
tree | a5f751c9c91e338b8f2cb8d8356525f4836bf5c3 /basic | |
parent | callcatcher: remove unused methods (diff) | |
download | core-76f27b1bc52892d53f7b2a0429a50d2c56a07081.tar.gz core-76f27b1bc52892d53f7b2a0429a50d2c56a07081.zip |
make assert useful, state *what* url is invalid
Diffstat (limited to 'basic')
-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 b24c232626f8..e83724d4e924 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() ); |