diff options
| author | Tom Lane | 2003-07-24 17:52:50 +0000 |
|---|---|---|
| committer | Tom Lane | 2003-07-24 17:52:50 +0000 |
| commit | 8fd5b3ed67d91937516d855bd6f225052aa88f2a (patch) | |
| tree | 5f14c30cb79692b6d35e612ed97feb79f62a155d /contrib/tsearch2/dict.c | |
| parent | f0c5384d4a21d85198f86281f61d5754bfdca7a5 (diff) | |
Error message editing in contrib (mostly by Joe Conway --- thanks Joe!)
Diffstat (limited to 'contrib/tsearch2/dict.c')
| -rw-r--r-- | contrib/tsearch2/dict.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/tsearch2/dict.c b/contrib/tsearch2/dict.c index 5c148c43b5a..8f4cad5c417 100644 --- a/contrib/tsearch2/dict.c +++ b/contrib/tsearch2/dict.c @@ -258,7 +258,10 @@ Datum lexize_bycurrent(PG_FUNCTION_ARGS) { Datum res; if ( currect_dictionary_id == 0 ) - elog(ERROR, "No currect dictionary. Execute select set_curdict()."); + ereport(ERROR, + (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), + errmsg("no currect dictionary"), + errhint("Execute select set_curdict()."))); res = DirectFunctionCall3( lexize, |
