Skip to content

Commit bfa47dd

Browse files
committed
Clarify some error messages
1 parent b98f989 commit bfa47dd

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/port/dirmod.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Win32 (NT, Win2k, XP). replace() doesn't work on Win95/98/Me.
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/port/dirmod.c,v 1.39 2005/08/10 19:52:37 momjian Exp $
13+
* $PostgreSQL: pgsql/src/port/dirmod.c,v 1.40 2005/09/18 09:48:24 petere Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -141,20 +141,20 @@ pgrename(const char *from, const char *to)
141141
pg_usleep(100000); /* us */
142142
if (loops == 30)
143143
#ifndef FRONTEND
144-
elog(LOG, "could not rename \"%s\" to \"%s\", continuing to try",
144+
elog(LOG, "could not rename file \"%s\" to \"%s\", continuing to try",
145145
from, to);
146146
#else
147-
fprintf(stderr, _("could not rename \"%s\" to \"%s\", continuing to try\n"),
147+
fprintf(stderr, _("could not rename file \"%s\" to \"%s\", continuing to try\n"),
148148
from, to);
149149
#endif
150150
loops++;
151151
}
152152

153153
if (loops > 30)
154154
#ifndef FRONTEND
155-
elog(LOG, "completed rename of \"%s\" to \"%s\"", from, to);
155+
elog(LOG, "completed rename of file \"%s\" to \"%s\"", from, to);
156156
#else
157-
fprintf(stderr, _("completed rename of \"%s\" to \"%s\"\n"), from, to);
157+
fprintf(stderr, _("completed rename of file \"%s\" to \"%s\"\n"), from, to);
158158
#endif
159159
return 0;
160160
}
@@ -181,20 +181,20 @@ pgunlink(const char *path)
181181
pg_usleep(100000); /* us */
182182
if (loops == 30)
183183
#ifndef FRONTEND
184-
elog(LOG, "could not unlink \"%s\", continuing to try",
184+
elog(LOG, "could not remove file \"%s\", continuing to try",
185185
path);
186186
#else
187-
fprintf(stderr, _("could not unlink \"%s\", continuing to try\n"),
187+
fprintf(stderr, _("could not remove file \"%s\", continuing to try\n"),
188188
path);
189189
#endif
190190
loops++;
191191
}
192192

193193
if (loops > 30)
194194
#ifndef FRONTEND
195-
elog(LOG, "completed unlink of \"%s\"", path);
195+
elog(LOG, "completed removal of file \"%s\"", path);
196196
#else
197-
fprintf(stderr, _("completed unlink of \"%s\"\n"), path);
197+
fprintf(stderr, _("completed removal of file \"%s\"\n"), path);
198198
#endif
199199
return 0;
200200
}

0 commit comments

Comments
 (0)