ICU-2 improve err msg in genrb for dup labels

X-SVN-Rev: 19
This commit is contained in:
Steven R. Loomis 1999-10-08 01:43:23 +00:00
parent b942cae860
commit 7d249a8db3

View File

@ -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;