Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 60ed8bb

Browse files
author
Thomas G. Lockhart
committed
Fix up warning and error messages to use single-quotes aroun strings.
1 parent 4fe2446 commit 60ed8bb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/backend/utils/init/miscinit.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.22 1998/09/01 04:33:15 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.23 1998/10/05 02:48:49 thomas Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -236,12 +236,12 @@ SetDatabaseName(char *name)
236236

237237
#ifndef MULTIBYTE
238238
/* even if MULTIBYTE is not enabled, this function is neccesary
239-
* since pg_proc.h does have.
239+
* since pg_proc.h has an entry for it.
240240
*/
241241
const char *
242242
getdatabaseencoding()
243243
{
244-
elog(ERROR, "you need to enable MB to use this function");
244+
elog(ERROR, "MultiByte strings (MB) must be enabled to use this function");
245245
return ("");
246246
}
247247

@@ -421,13 +421,13 @@ SetPgUserName()
421421
{
422422
/* use the (possibly) authenticated name that's provided */
423423
if (!(p = getenv("PG_USER")))
424-
elog(FATAL, "SetPgUserName: PG_USER environment variable unset");
424+
elog(FATAL, "SetPgUserName: PG_USER environment variable is unset");
425425
}
426426
else
427427
{
428428
/* setuid() has not yet been done, see above comment */
429429
if (!(pw = getpwuid(geteuid())))
430-
elog(FATAL, "SetPgUserName: no entry in passwd file");
430+
elog(FATAL, "SetPgUserName: no entry in host passwd file");
431431
p = pw->pw_name;
432432
}
433433
if (UserName)
@@ -473,7 +473,7 @@ SetUserId()
473473
PointerGetDatum(userName),
474474
0, 0, 0);
475475
if (!HeapTupleIsValid(userTup))
476-
elog(FATAL, "SetUserId: user \"%s\" is not in \"%s\"",
476+
elog(FATAL, "SetUserId: user '%s' is not in '%s'",
477477
userName,
478478
ShadowRelationName);
479479
UserId = (Oid) ((Form_pg_shadow) GETSTRUCT(userTup))->usesysid;

0 commit comments

Comments
 (0)