OSDN Git Service

Improve a couple of error messages per suggestions from Alvaro Herrera.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 15 Sep 2003 22:28:58 +0000 (22:28 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 15 Sep 2003 22:28:58 +0000 (22:28 +0000)
src/backend/parser/gram.y
src/backend/utils/misc/guc.c

index 1bda143..f84c277 100644 (file)
@@ -11,7 +11,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.432 2003/09/09 23:22:20 petere Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.433 2003/09/15 22:28:57 tgl Exp $
  *
  * HISTORY
  *       AUTHOR                        DATE                    MAJOR EVENT
@@ -3244,7 +3244,8 @@ oper_argtypes:
                                {
                                   ereport(ERROR,
                                                   (errcode(ERRCODE_SYNTAX_ERROR),
-                                                       errmsg("argument type missing (use NONE for unary operators)")));
+                                                       errmsg("missing argument"),
+                                                       errhint("Use NONE to denote the missing argument of a unary operator.")));
                                }
                        | Typename ',' Typename
                                        { $$ = makeList2($1, $3); }
index a530677..d8a7611 100644 (file)
@@ -10,7 +10,7 @@
  * Written by Peter Eisentraut <peter_e@gmx.net>.
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.157 2003/09/11 18:30:39 momjian Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.158 2003/09/15 22:28:58 tgl Exp $
  *
  *--------------------------------------------------------------------
  */
@@ -1540,7 +1540,7 @@ static struct config_string ConfigureNamesString[] =
 
        {
                {"unix_socket_group", PGC_POSTMASTER, CONN_AUTH_SETTINGS,
-                       gettext_noop("The group owner of the Unix domain socket"),
+                       gettext_noop("The owning group of the Unix-domain socket"),
                        gettext_noop("(The owning user of the socket is always the user "
                                                 "that starts the server.)")
                },
@@ -1550,7 +1550,7 @@ static struct config_string ConfigureNamesString[] =
 
        {
                {"unix_socket_directory", PGC_POSTMASTER, CONN_AUTH_SETTINGS,
-                       gettext_noop("The Unix-domain socket directory to listen to"),
+                       gettext_noop("Directory where the Unix-domain socket will be created"),
                        NULL
                },
                &UnixSocketDir,