Skip to content

Commit 9a24289

Browse files
committed
pg_locale.c: change ereport() to elog().
Discussion: https://postgr.es/m/73553013-3926-0f34-0fb8-f37909fe4902@enterprisedb.com Reported-by: Peter Eisentraut
1 parent e88754a commit 9a24289

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/backend/utils/adt/pg_locale.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2507,16 +2507,15 @@ pg_ucol_open(const char *loc_str)
25072507

25082508
/*
25092509
* Must never open default collator, because it depends on the environment
2510-
* and may change at any time.
2510+
* and may change at any time. Should not happen, but check here to catch
2511+
* bugs that might be hard to catch otherwise.
25112512
*
25122513
* NB: the default collator is not the same as the collator for the root
25132514
* locale. The root locale may be specified as the empty string, "und", or
25142515
* "root". The default collator is opened by passing NULL to ucol_open().
25152516
*/
25162517
if (loc_str == NULL)
2517-
ereport(ERROR,
2518-
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
2519-
errmsg("opening default collator is not supported")));
2518+
elog(ERROR, "opening default collator is not supported");
25202519

25212520
/*
25222521
* In ICU versions 54 and earlier, "und" is not a recognized spelling of

0 commit comments

Comments
 (0)