Commit 18b5ef5a authored by Neil Conway's avatar Neil Conway

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.
parent daec16d0
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_restore.c,v 1.69 2005/02/22 04:39:38 momjian Exp $ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_restore.c,v 1.70 2005/04/29 07:08:06 neilc Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -313,7 +313,7 @@ main(int argc, char **argv) ...@@ -313,7 +313,7 @@ main(int argc, char **argv)
break; break;
default: 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); opts->formatName);
exit(1); exit(1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment