@@ -173,7 +173,7 @@ CustomizableInitialize(void)
173
173
*/
174
174
if (stat (archiveLocation ,& stat_buf )!= 0 )
175
175
{
176
- fprintf (stderr ,"%s:archiveLocation \"%s\" does not exist\n" ,progname ,archiveLocation );
176
+ fprintf (stderr ,"%s:archive location \"%s\" does not exist\n" ,progname ,archiveLocation );
177
177
fflush (stderr );
178
178
exit (2 );
179
179
}
@@ -283,12 +283,12 @@ CustomizableCleanupPriorWALFiles(void)
283
283
#endif
284
284
285
285
if (debug )
286
- fprintf (stderr ,"\nremoving \"%s\"" ,WALFilePath );
286
+ fprintf (stderr ,"\nremovingfile \"%s\"" ,WALFilePath );
287
287
288
288
rc = unlink (WALFilePath );
289
289
if (rc != 0 )
290
290
{
291
- fprintf (stderr ,"\n%s: ERROR failed to remove \"%s\": %s" ,
291
+ fprintf (stderr ,"\n%s: ERROR: could not removefile \"%s\": %s\n " ,
292
292
progname ,WALFilePath ,strerror (errno ));
293
293
break ;
294
294
}
@@ -298,7 +298,8 @@ CustomizableCleanupPriorWALFiles(void)
298
298
fprintf (stderr ,"\n" );
299
299
}
300
300
else
301
- fprintf (stderr ,"%s: archiveLocation \"%s\" open error\n" ,progname ,archiveLocation );
301
+ fprintf (stderr ,"%s: could not open archive location \"%s\": %s\n" ,
302
+ progname ,archiveLocation ,strerror (errno ));
302
303
303
304
closedir (xldir );
304
305
fflush (stderr );
@@ -693,7 +694,7 @@ main(int argc, char **argv)
693
694
}
694
695
else
695
696
{
696
- fprintf (stderr ,"%s: use %%f to specify nextWALFileName \n" ,progname );
697
+ fprintf (stderr ,"%s:must specify WAL file name as second non-option argument ( use\" %%f\") \n" ,progname );
697
698
fprintf (stderr ,"Try \"%s --help\" for more information.\n" ,progname );
698
699
exit (2 );
699
700
}
@@ -705,7 +706,7 @@ main(int argc, char **argv)
705
706
}
706
707
else
707
708
{
708
- fprintf (stderr ,"%s: use %%p to specify xlogFilePath \n" ,progname );
709
+ fprintf (stderr ,"%s:must specify xlog destination as third non-option argument ( use\" %%p\") \n" ,progname );
709
710
fprintf (stderr ,"Try \"%s --help\" for more information.\n" ,progname );
710
711
exit (2 );
711
712
}