Fix copy-and-pasteo that's causing pg_regress to lie about which file it can't
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 3 Aug 2008 05:12:45 +0000 (05:12 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 3 Aug 2008 05:12:45 +0000 (05:12 +0000)
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 ...

src/test/regress/pg_regress.c

index 8340f824c716d630923f77c2e937b8085313348a..482a4eed0ac96bf09d9503bff2e92b49709874d4 100644 (file)
@@ -2079,7 +2079,7 @@ regression_main(int argc, char *argv[], init_function ifunc, test_function tfunc
                        extra_conf = fopen(temp_config, "r");
                        if (extra_conf == NULL)
                        {
-                               fprintf(stderr, _("\n%s: could not open %s to read extra config:\nError was %s\n"), progname, buf, strerror(errno));
+                               fprintf(stderr, _("\n%s: could not open %s to read extra config:\nError was %s\n"), progname, temp_config, strerror(errno));
                                exit_nicely(2);
                        }
                        while (fgets(line_buf, sizeof(line_buf), extra_conf) != NULL)