mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-16 18:25:57 +00:00
ICU-7417 better error than 'parse failed' when ICU data is missing.
X-SVN-Rev: 27546
This commit is contained in:
parent
a6c3b1905e
commit
588cb1a7da
1 changed files with 6 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
*
|
||||
* Copyright (C) 1998-2009, International Business Machines
|
||||
* Copyright (C) 1998-2010, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
*******************************************************************************
|
||||
|
@ -763,6 +763,11 @@ addCollation(struct SResource *result, uint32_t startline, UErrorCode *status)
|
|||
}
|
||||
else
|
||||
{
|
||||
if(intStatus == U_FILE_ACCESS_ERROR) {
|
||||
error(startline, "Collation could not be built- U_FILE_ACCESS_ERROR. Make sure ICU's data has been built and iss loading properly.");
|
||||
*status = intStatus;
|
||||
return NULL;
|
||||
}
|
||||
warning(line, "%%Collation could not be constructed from CollationElements - check context!");
|
||||
if(isStrict()){
|
||||
*status = intStatus;
|
||||
|
|
Loading…
Add table
Reference in a new issue