Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3c93218

Browse files
committed
Fix copy-and-pasteo that's causing pg_regress to lie about which file it can't
read when the --temp-config argument is bad. Noted while wondering why buildfarm member dungbeetle is failing ... this isn't why, but it is why the error report isn't very helpful ...
1 parent 9511304 commit 3c93218

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/regress/pg_regress.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
1212
* Portions Copyright (c) 1994, Regents of the University of California
1313
*
14-
* $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.45 2008/05/17 20:02:01 tgl Exp $
14+
* $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.46 2008/08/03 05:12:38 tgl Exp $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
@@ -2079,7 +2079,7 @@ regression_main(int argc, char *argv[], init_function ifunc, test_function tfunc
20792079
extra_conf = fopen(temp_config, "r");
20802080
if (extra_conf == NULL)
20812081
{
2082-
fprintf(stderr, _("\n%s: could not open %s to read extra config:\nError was %s\n"), progname, buf, strerror(errno));
2082+
fprintf(stderr, _("\n%s: could not open %s to read extra config:\nError was %s\n"), progname, temp_config, strerror(errno));
20832083
exit_nicely(2);
20842084
}
20852085
while (fgets(line_buf, sizeof(line_buf), extra_conf) != NULL)

0 commit comments

Comments
 (0)