Skip to content

Commit daed6f4

Browse files
committed
Improve a couple of error messages per suggestions from Alvaro Herrera.
1 parent 7ce5f25 commit daed6f4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/backend/parser/gram.y

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.432 2003/09/09 23:22:20 petere Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.433 2003/09/15 22:28:57 tgl Exp $
1515
*
1616
* HISTORY
1717
* AUTHOR DATE MAJOR EVENT
@@ -3244,7 +3244,8 @@ oper_argtypes:
32443244
{
32453245
ereport(ERROR,
32463246
(errcode(ERRCODE_SYNTAX_ERROR),
3247-
errmsg("argument type missing (use NONE for unary operators)")));
3247+
errmsg("missing argument"),
3248+
errhint("Use NONE to denote the missing argument of a unary operator.")));
32483249
}
32493250
| Typename ',' Typename
32503251
{ $$ = makeList2($1, $3); }

src/backend/utils/misc/guc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Written by Peter Eisentraut <peter_e@gmx.net>.
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.157 2003/09/11 18:30:39 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.158 2003/09/15 22:28:58 tgl Exp $
1414
*
1515
*--------------------------------------------------------------------
1616
*/
@@ -1540,7 +1540,7 @@ static struct config_string ConfigureNamesString[] =
15401540

15411541
{
15421542
{"unix_socket_group", PGC_POSTMASTER, CONN_AUTH_SETTINGS,
1543-
gettext_noop("The group owner of the Unix domain socket"),
1543+
gettext_noop("The owning group of the Unix-domain socket"),
15441544
gettext_noop("(The owning user of the socket is always the user "
15451545
"that starts the server.)")
15461546
},
@@ -1550,7 +1550,7 @@ static struct config_string ConfigureNamesString[] =
15501550

15511551
{
15521552
{"unix_socket_directory", PGC_POSTMASTER, CONN_AUTH_SETTINGS,
1553-
gettext_noop("The Unix-domain socket directory to listen to"),
1553+
gettext_noop("Directory where the Unix-domain socket will be created"),
15541554
NULL
15551555
},
15561556
&UnixSocketDir,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy