From: Neil Conway Date: Sat, 30 Apr 2005 08:01:58 +0000 (+0000) Subject: This patch fixes a bug in the error message emitted by pg_restore on an X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=6ed2e017bf70543dc32cab66e521a993e25f4ba0;p=users%2Fbernd%2Fpostgres.git This patch fixes a bug in the error message emitted by pg_restore on an incorrect -F argument: write_msg() expects its first parameter to be a "module name", not the format string. --- diff --git a/src/bin/pg_dump/pg_restore.c b/src/bin/pg_dump/pg_restore.c index 7d5fc6e1b3..30a716b3a8 100644 --- a/src/bin/pg_dump/pg_restore.c +++ b/src/bin/pg_dump/pg_restore.c @@ -332,7 +332,7 @@ main(int argc, char **argv) break; default: - write_msg("unrecognized archive format '%s'; please specify 't' or 'c'\n", + write_msg(NULL, "unrecognized archive format '%s'; please specify 't' or 'c'\n", opts->formatName); exit(1); }