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:
Steven R. Loomis 1999-10-08 01:43:23 +00:00
parent 1b62c36ab1
commit 671f45782f

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;