@@ -173,7 +173,7 @@ CustomizableInitialize(void)
173173 */
174174if (stat (archiveLocation ,& stat_buf )!= 0 )
175175{
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 );
177177fflush (stderr );
178178exit (2 );
179179}
@@ -283,12 +283,12 @@ CustomizableCleanupPriorWALFiles(void)
283283#endif
284284
285285if (debug )
286- fprintf (stderr ,"\nremoving \"%s\"" ,WALFilePath );
286+ fprintf (stderr ,"\nremovingfile \"%s\"" ,WALFilePath );
287287
288288rc = unlink (WALFilePath );
289289if (rc != 0 )
290290{
291- fprintf (stderr ,"\n%s: ERROR failed to remove \"%s\": %s" ,
291+ fprintf (stderr ,"\n%s: ERROR: could not removefile \"%s\": %s\n " ,
292292progname ,WALFilePath ,strerror (errno ));
293293break ;
294294}
@@ -298,7 +298,8 @@ CustomizableCleanupPriorWALFiles(void)
298298fprintf (stderr ,"\n" );
299299}
300300else
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 ));
302303
303304closedir (xldir );
304305fflush (stderr );
@@ -693,7 +694,7 @@ main(int argc, char **argv)
693694}
694695else
695696{
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 );
697698fprintf (stderr ,"Try \"%s --help\" for more information.\n" ,progname );
698699exit (2 );
699700}
@@ -705,7 +706,7 @@ main(int argc, char **argv)
705706}
706707else
707708{
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 );
709710fprintf (stderr ,"Try \"%s --help\" for more information.\n" ,progname );
710711exit (2 );
711712}