1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Error message editing in backend/bootstrap, /lib, /nodes, /port.

This commit is contained in:
Tom Lane
2003-07-22 23:30:39 +00:00
parent 56f87688c4
commit c72839d5be
21 changed files with 121 additions and 113 deletions

View File

@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/lib/dllist.c,v 1.25 2002/06/20 20:29:28 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/lib/dllist.c,v 1.26 2003/07/22 23:30:37 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -35,10 +35,12 @@ DLNewList(void)
if (l == NULL)
{
#ifdef FRONTEND
fprintf(stderr, "Memory exhausted in DLNewList\n");
fprintf(stderr, "memory exhausted in DLNewList\n");
exit(1);
#else
elog(ERROR, "Memory exhausted in DLNewList");
ereport(ERROR,
(errcode(ERRCODE_OUT_OF_MEMORY),
errmsg("out of memory")));
#endif
}
l->dll_head = 0;
@ -78,10 +80,12 @@ DLNewElem(void *val)
if (e == NULL)
{
#ifdef FRONTEND
fprintf(stderr, "Memory exhausted in DLNewElem\n");
fprintf(stderr, "memory exhausted in DLNewElem\n");
exit(1);
#else
elog(ERROR, "Memory exhausted in DLNewElem");
ereport(ERROR,
(errcode(ERRCODE_OUT_OF_MEMORY),
errmsg("out of memory")));
#endif
}
e->dle_next = 0;