mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 01:11:02 +00:00
[ICU-2] improve err msg in genrb for dup labels
X-Commit-URL: https://ssl.icu-project.org/trac/changeset/19
This commit is contained in:
parent
4939888ad6
commit
d0bc6186cd
1 changed files with 5 additions and 1 deletions
|
@ -208,8 +208,12 @@ parse(FileStream *f,
|
|||
ustr_cpy(&tag, &token, status);
|
||||
if(FAILURE(*status)) goto finish;
|
||||
if(uhash_get(data, uhash_hashUString(tag.fChars)) != 0) {
|
||||
char *s;
|
||||
*status = U_INVALID_FORMAT_ERROR;
|
||||
setErrorText("Duplicate tag name detected");
|
||||
s = icu_malloc(1024);
|
||||
strcpy(s, "Duplicate tag name detected: ");
|
||||
u_austrcpy(s+strlen(s), tag.fChars);
|
||||
setErrorText(s);
|
||||
goto finish;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue