minor message improvement

Started by Euler Taveiraover 9 years ago4 messages
#1Euler Taveira
euler@timbira.com.br
1 attachment(s)

Hi,

While updating translations, I noticed that access/transam/xlog.c:6174
contains different messages that could be the same.

"ignoring file \"%s\" because no file \"%s\" exists"

a few lines above

"ignoring \"%s\" file because no \"%s\" file exists"

Attached is a patch that turn it into one.

--
Euler Taveira Timbira - http://www.timbira.com.br/
PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento

Attachments:

typo.difftext/x-patch; name=typo.diffDownload
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index f9644db..b473f19 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -6179,7 +6179,7 @@ StartupXLOG(void)
 							   TABLESPACE_MAP, TABLESPACE_MAP_OLD)));
 			else
 				ereport(LOG,
-						(errmsg("ignoring \"%s\" file because no \"%s\" file exists",
+						(errmsg("ignoring file \"%s\" because no file \"%s\" exists",
 								TABLESPACE_MAP, BACKUP_LABEL_FILE),
 						 errdetail("Could not rename file \"%s\" to \"%s\": %m.",
 								   TABLESPACE_MAP, TABLESPACE_MAP_OLD)));
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Euler Taveira (#1)
Re: minor message improvement

Euler Taveira <euler@timbira.com.br> writes:

While updating translations, I noticed that access/transam/xlog.c:6174
contains different messages that could be the same.
"ignoring file \"%s\" because no file \"%s\" exists"
a few lines above
"ignoring \"%s\" file because no \"%s\" file exists"
Attached is a patch that turn it into one.

Pushed, thanks.

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#3Simon Riggs
simon@2ndQuadrant.com
In reply to: Euler Taveira (#1)
Re: minor message improvement

On 8 May 2016 at 03:53, Euler Taveira <euler@timbira.com.br> wrote:

Attached is a patch that turn it into one.

Applied, by Tom. Thanks

--
Simon Riggs http://www.2ndQuadrant.com/
<http://www.2ndquadrant.com/&gt;
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

#4Simon Riggs
simon@2ndQuadrant.com
In reply to: Simon Riggs (#3)
Re: minor message improvement

On 8 May 2016 at 12:48, Simon Riggs <simon@2ndquadrant.com> wrote:

On 8 May 2016 at 03:53, Euler Taveira <euler@timbira.com.br> wrote:

Attached is a patch that turn it into one.

Applied, by Tom. Thanks

Sorry about that; Tom's message only just arrived with me for some reason.

--
Simon Riggs http://www.2ndQuadrant.com/
<http://www.2ndquadrant.com/&gt;
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services