mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-06 22:15:31 +00:00
Review: use errCode.errIfFailureAndReset.
This commit is contained in:
parent
c841e375cb
commit
6f705eaac5
1 changed files with 3 additions and 3 deletions
|
@ -258,9 +258,9 @@ void UnitsTest::testConversions() {
|
|||
|
||||
u_parseDelimitedFile(path.data(), ';', fields, kNumFields,
|
||||
unitsTestDataLineFn, this, errorCode);
|
||||
if (U_FAILURE(errorCode)) {
|
||||
log_err_status(errorCode, "error parsing %s: %s\n", filename,
|
||||
u_errorName(errorCode));
|
||||
if (errorCode.errIfFailureAndReset("error parsing %s: %s\n", filename,
|
||||
u_errorName(errorCode))) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue