summaryrefslogtreecommitdiff
path: root/contrib/tsearch2/dict_ex.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-07-24 17:52:50 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-07-24 17:52:50 +0000
commit8fd5b3ed67d91937516d855bd6f225052aa88f2a (patch)
tree5f14c30cb79692b6d35e612ed97feb79f62a155d /contrib/tsearch2/dict_ex.c
parentf0c5384d4a21d85198f86281f61d5754bfdca7a5 (diff)
downloadpostgresql-8fd5b3ed67d91937516d855bd6f225052aa88f2a.tar.gz
Error message editing in contrib (mostly by Joe Conway --- thanks Joe!)
Diffstat (limited to 'contrib/tsearch2/dict_ex.c')
-rw-r--r--contrib/tsearch2/dict_ex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/tsearch2/dict_ex.c b/contrib/tsearch2/dict_ex.c
index b8c4f59c90..ead9610687 100644
--- a/contrib/tsearch2/dict_ex.c
+++ b/contrib/tsearch2/dict_ex.c
@@ -26,7 +26,9 @@ dex_init(PG_FUNCTION_ARGS) {
DictExample *d = (DictExample*)malloc( sizeof(DictExample) );
if ( !d )
- elog(ERROR, "No memory");
+ ereport(ERROR,
+ (errcode(ERRCODE_OUT_OF_MEMORY),
+ errmsg("out of memory")));
memset(d,0,sizeof(DictExample));
d->stoplist.wordop=lowerstr;