summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2012-11-30 23:29:00 +0100
committerAndras Timar <atimar@suse.com>2012-11-30 23:30:54 +0100
commit9bfa09273ea0b7c9a351802d105230930951b901 (patch)
tree03870b30bff532c1586ce7efe3615f25f95de3d5 /l10ntools
parentf66d0d6de34c8bf67a44e5696b28b3d857373b6a (diff)
better error reporting in localize binary
Change-Id: Ic98a786fffd9d92b51669e2beaed434db1aca519
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/localize.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/l10ntools/source/localize.cxx b/l10ntools/source/localize.cxx
index c4ed537928c0..0737c61848cc 100644
--- a/l10ntools/source/localize.cxx
+++ b/l10ntools/source/localize.cxx
@@ -233,7 +233,8 @@ void handleCommand(
if (osl::FileBase::getFileURLFromSystemPath(outDir, outDirUrl)
!= osl::FileBase::E_None)
{
- cerr << "Error: Cannot convert pathname to URL\n";
+ cerr << "Error: Cannot convert pathname to URL in " << __FILE__ << ", in line " << __LINE__ << "\n"
+ << " outDir: " << OUStringToOString(outDir, RTL_TEXTENCODING_ASCII_US).getStr() << "\n";
throw false; //TODO
}
osl::Directory::createPath(outDirUrl);
@@ -530,7 +531,8 @@ void handleProjects(char * sourceRoot, char const * destRoot)
if (osl::FileBase::getFileURLFromSystemPath(root16, rootUrl)
!= osl::FileBase::E_None)
{
- cerr << "Error: Cannot convert pathname to URL\n";
+ cerr << "Error: Cannot convert pathname to URL in " << __FILE__ << ", in line " << __LINE__ << "\n"
+ << " root16: " << OUStringToOString(root16, RTL_TEXTENCODING_ASCII_US).getStr() << "\n";
throw false; //TODO
}
handleDirectory(rootUrl, 0, OString(), OString(), OString(destRoot));