diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-07-24 17:52:50 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-07-24 17:52:50 +0000 |
| commit | 8fd5b3ed67d91937516d855bd6f225052aa88f2a (patch) | |
| tree | 5f14c30cb79692b6d35e612ed97feb79f62a155d /contrib/intarray/_int_op.c | |
| parent | f0c5384d4a21d85198f86281f61d5754bfdca7a5 (diff) | |
| download | postgresql-8fd5b3ed67d91937516d855bd6f225052aa88f2a.tar.gz | |
Error message editing in contrib (mostly by Joe Conway --- thanks Joe!)
Diffstat (limited to 'contrib/intarray/_int_op.c')
| -rw-r--r-- | contrib/intarray/_int_op.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/intarray/_int_op.c b/contrib/intarray/_int_op.c index 5aa27f039d..9f30bb2173 100644 --- a/contrib/intarray/_int_op.c +++ b/contrib/intarray/_int_op.c @@ -243,7 +243,9 @@ sort(PG_FUNCTION_ARGS) && (d[3] == 'C' || d[3] == 'c')) dir = 0; if (dir == -1) - elog(ERROR, "Invalid second parameter in function sort. It must be 'ASC' or 'DESC'."); + ereport(ERROR, + (errcode(ERRCODE_INVALID_PARAMETER_VALUE), + errmsg("second parameter must be \"ASC\" or \"DESC\""))); QSORT(a, dir); PG_RETURN_POINTER(a); } |
