mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 10:40:38 +01:00
Improve error message in the case the of the collation attributes do not have ICU-VERSION - #7169.
This commit is contained in:
parent
cc77d95fb6
commit
674cd26580
@ -2057,11 +2057,24 @@ UnicodeUtil::ICU* UnicodeUtil::Utf16Collation::loadICU(
|
|||||||
}
|
}
|
||||||
|
|
||||||
string errorMsg;
|
string errorMsg;
|
||||||
|
|
||||||
|
if (icuVersion.isEmpty())
|
||||||
|
{
|
||||||
|
errorMsg.printf(
|
||||||
|
"An ICU library with collation version %s is required but was not found. "
|
||||||
|
"You may try to install another ICU version which this collation version "
|
||||||
|
"or look for 'gfix -icu' in Firebird documentation.",
|
||||||
|
collVersion.c_str());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
errorMsg.printf(
|
errorMsg.printf(
|
||||||
"An ICU library with collation version %s is required but was not found. "
|
"An ICU library with collation version %s is required but was not found. "
|
||||||
"You may try to install ICU version %s, used to register the collation in this database "
|
"You may try to install ICU version %s, used to register the collation in this database "
|
||||||
"or look for 'gfix -icu' in Firebird documentation.",
|
"or look for 'gfix -icu' in Firebird documentation.",
|
||||||
collVersion.c_str(), icuVersion.c_str());
|
collVersion.c_str(), icuVersion.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
(Arg::Gds(isc_random) << errorMsg).raise();
|
(Arg::Gds(isc_random) << errorMsg).raise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user