From 5165c06ca6affd46be72a9726a07375a70f7b651 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 25 Sep 2003 06:58:07 +0000 Subject: Message editing: remove gratuitous variations in message wording, standardize terms, add some clarifications, fix some untranslatable attempts at dynamic message building. --- src/backend/commands/variable.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/backend/commands/variable.c') diff --git a/src/backend/commands/variable.c b/src/backend/commands/variable.c index 0517c1afbd..7b04226017 100644 --- a/src/backend/commands/variable.c +++ b/src/backend/commands/variable.c @@ -72,7 +72,7 @@ assign_datestyle(const char *value, bool doit, bool interactive) if (interactive) ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), - errmsg("invalid list syntax for datestyle"))); + errmsg("invalid list syntax for parameter \"datestyle\""))); return NULL; } @@ -158,7 +158,7 @@ assign_datestyle(const char *value, bool doit, bool interactive) if (interactive) ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), - errmsg("unrecognized datestyle keyword: \"%s\"", + errmsg("unrecognized \"datestyle\" key word: \"%s\"", tok))); ok = false; break; @@ -176,7 +176,7 @@ assign_datestyle(const char *value, bool doit, bool interactive) if (interactive) ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), - errmsg("conflicting datestyle specifications"))); + errmsg("conflicting \"datestyle\" specifications"))); return NULL; } @@ -447,7 +447,7 @@ assign_timezone(const char *value, bool doit, bool interactive) if (interactive) ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), - errmsg("invalid INTERVAL for time zone: month not allowed"))); + errmsg("invalid interval value for time zone: month not allowed"))); pfree(interval); return NULL; } @@ -554,7 +554,7 @@ assign_timezone(const char *value, bool doit, bool interactive) { ereport(interactive ? ERROR : LOG, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), - errmsg("unrecognized timezone name: \"%s\"", + errmsg("unrecognized time zone name: \"%s\"", value))); return NULL; } @@ -562,9 +562,9 @@ assign_timezone(const char *value, bool doit, bool interactive) { ereport(interactive ? ERROR : LOG, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), - errmsg("timezone \"%s\" appears to use leap seconds", + errmsg("time zone \"%s\" appears to use leap seconds", value), - errdetail("PostgreSQL does not support leap seconds"))); + errdetail("PostgreSQL does not support leap seconds."))); return NULL; } } -- cgit v1.2.3