mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 23:10:40 +00:00
improve err msg in genrb for dup labels
X-Trac-URL: https://ssl.icu-project.org/trac/ticket/2 git-svn-id: http://source.icu-project.org/repos/icu/icu/trunk@19 0a8b766c-62c9-45f9-954d-7f2943c9ead0
This commit is contained in:
parent
1b62c36ab1
commit
671f45782f
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