From: Neil Conway Date: Sat, 30 Apr 2005 08:00:55 +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=0a25bcc27ae434998b89b77b7ddf3e6ca24ebad6;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 473caf11ca..86be6c267e 100644 --- a/src/bin/pg_dump/pg_restore.c +++ b/src/bin/pg_dump/pg_restore.c @@ -324,7 +324,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); }