We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1ba94b commit b44fc39Copy full SHA for b44fc39
src/bin/pg_dump/pg_dump.c
@@ -563,10 +563,16 @@ main(int argc, char **argv)
563
dump_inserts = 1;
564
565
if (dataOnly && schemaOnly)
566
- exit_horribly(NULL, "options -s/--schema-only and -a/--data-only cannot be used together\n");
+ {
567
+ write_msg(NULL, "options -s/--schema-only and -a/--data-only cannot be used together\n");
568
+ exit_nicely(1);
569
+ }
570
571
if (dataOnly && outputClean)
- exit_horribly(NULL, "options -c/--clean and -a/--data-only cannot be used together\n");
572
573
+ write_msg(NULL, "options -c/--clean and -a/--data-only cannot be used together\n");
574
575
576
577
if (dump_inserts && oids)
578
{
0 commit comments