[Libreoffice-commits] .: l10ntools/source
Andras Timar
timar at kemper.freedesktop.org
Sun Feb 26 01:16:09 PST 2012
l10ntools/source/localize.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit f15c1c3e03dc8c647e0e86718183ac39885d8510
Author: Andras Timar <atimar at suse.com>
Date: Sun Feb 26 10:09:53 2012 +0100
print what directory localize tool cannot open
Currently it cannot open /dictionaries under Cygwin,
because it is a Cygwin symlink that Windows programs
cannot follow. TODO...
diff --git a/l10ntools/source/localize.cxx b/l10ntools/source/localize.cxx
index 6fb83e1..9e0cf0b 100644
--- a/l10ntools/source/localize.cxx
+++ b/l10ntools/source/localize.cxx
@@ -313,7 +313,7 @@ void handleDirectory(
{
osl::Directory dir(url);
if (dir.open() != osl::FileBase::E_None) {
- std::cerr << "Error: Cannot open directory\n";
+ std::cerr << "Error: Cannot open directory: " << OUStringToOString(url, RTL_TEXTENCODING_ASCII_US).getStr() << std::endl;
throw false; //TODO
}
for (;;) {
@@ -430,7 +430,7 @@ void handleProjects(char const * root) {
}
osl::Directory dir(rootUrl);
if (dir.open() != osl::FileBase::E_None) {
- std::cerr << "Error: Cannot open directory\n";
+ std::cerr << "Error: Cannot open directory: " << OUStringToOString(rootUrl, RTL_TEXTENCODING_ASCII_US).getStr() << std::endl;
throw false; //TODO
}
for (;;) {
More information about the Libreoffice-commits
mailing list