From 9bfa09273ea0b7c9a351802d105230930951b901 Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Fri, 30 Nov 2012 23:29:00 +0100 Subject: better error reporting in localize binary Change-Id: Ic98a786fffd9d92b51669e2beaed434db1aca519 --- l10ntools/source/localize.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'l10ntools/source') 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)); -- cgit v1.2.3