[Libreoffice-commits] .: Branch 'feature/killsdf' - l10ntools/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sun Sep 30 08:14:00 PDT 2012
l10ntools/source/localize.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 4869d45d8e6ba43f422ee3aa05b7c0baca28d1e0
Author: Zolnai Tamás <zolnaitamas2000 at gmail.com>
Date: Sun Sep 30 12:47:56 2012 +0200
Make error message clearer in localize
which is written out when one of executables
writes out invalid sdf line
Change-Id: I167b31bf0f550222accdda8ee5a03d8e4a742d63
Reviewed-on: https://gerrit.libreoffice.org/730
Reviewed-by: Andras Timar <atimar at suse.com>
Tested-by: Andras Timar <atimar at suse.com>
diff --git a/l10ntools/source/localize.cxx b/l10ntools/source/localize.cxx
index 87ee83b..6bc92a8 100644
--- a/l10ntools/source/localize.cxx
+++ b/l10ntools/source/localize.cxx
@@ -299,7 +299,11 @@ void handleCommand(
{
if(aException == PoEntry::INVALIDSDFLINE)
{
- std::cerr << executable << "'s input is invalid\n";
+ std::cerr
+ << executable
+ << "'s output is invalid:\n"
+ << sLine.replaceAll("\t","\\t").getStr()
+ << std::endl;
throw false; //TODO
}
}
More information about the Libreoffice-commits
mailing list