[Libreoffice-commits] .: l10ntools/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Nov 30 14:32:22 PST 2012


 l10ntools/source/localize.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 9bfa09273ea0b7c9a351802d105230930951b901
Author: Andras Timar <atimar at suse.com>
Date:   Fri Nov 30 23:29:00 2012 +0100

    better error reporting in localize binary
    
    Change-Id: Ic98a786fffd9d92b51669e2beaed434db1aca519

diff --git a/l10ntools/source/localize.cxx b/l10ntools/source/localize.cxx
index c4ed537..0737c61 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));


More information about the Libreoffice-commits mailing list