mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-4354 Don't create excessively long error messages when data is missing.
X-SVN-Rev: 17803
This commit is contained in:
parent
b540f34b4d
commit
8fcb55e4cc
1 changed files with 4 additions and 18 deletions
|
@ -1616,7 +1616,6 @@ IntlTestRBNF::TestAllLocales()
|
|||
" (ordinal) ",
|
||||
" (duration) "
|
||||
};
|
||||
UnicodeString err;
|
||||
int32_t count = 0;
|
||||
const Locale* locales = Locale::getAvailableLocales(count);
|
||||
for (int i = 0; i < count; ++i) {
|
||||
|
@ -1630,27 +1629,14 @@ IntlTestRBNF::TestAllLocales()
|
|||
f->format(n, str);
|
||||
delete f;
|
||||
|
||||
UnicodeString msg;
|
||||
msg.append(loc->getName());
|
||||
msg.append(names[j]);
|
||||
msg.append("success: 45.678 -> ");
|
||||
msg.append(str);
|
||||
logln(msg);
|
||||
logln(UnicodeString(loc->getName()) + UnicodeString(names[j])
|
||||
+ UnicodeString("success: 45.678 -> ") + str);
|
||||
} else {
|
||||
UnicodeString msg;
|
||||
msg.append(loc->getName());
|
||||
msg.append(names[j]);
|
||||
msg.append("ERROR could not instantiate");
|
||||
logln(msg);
|
||||
|
||||
err.append("\n");
|
||||
err.append(msg);
|
||||
errln(UnicodeString(loc->getName()) + UnicodeString(names[j])
|
||||
+ UnicodeString("ERROR could not instantiate -> ") + UnicodeString(u_errorName(status)));
|
||||
}
|
||||
}
|
||||
}
|
||||
if (err.length()) {
|
||||
errln(err);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Reference in a new issue