@@ -2124,10 +2124,7 @@ main(int argc, char **argv)
2124
2124
num_dbs ++ ;
2125
2125
}
2126
2126
else
2127
- {
2128
- pg_log_error ("database \"%s\" specified more than once" , optarg );
2129
- exit (1 );
2130
- }
2127
+ pg_fatal ("database \"%s\" specified more than once for -d/--database" , optarg );
2131
2128
break ;
2132
2129
case 'D' :
2133
2130
subscriber_dir = pg_strdup (optarg );
@@ -2146,7 +2143,7 @@ main(int argc, char **argv)
2146
2143
if (!simple_string_list_member (& opt .objecttypes_to_remove , optarg ))
2147
2144
simple_string_list_append (& opt .objecttypes_to_remove , optarg );
2148
2145
else
2149
- pg_fatal ("object type \"%s\" is specified more than once for --remove" , optarg );
2146
+ pg_fatal ("object type \"%s\" is specified more than once for -R/- -remove" , optarg );
2150
2147
break ;
2151
2148
case 's' :
2152
2149
opt .socket_dir = pg_strdup (optarg );
@@ -2174,10 +2171,7 @@ main(int argc, char **argv)
2174
2171
num_pubs ++ ;
2175
2172
}
2176
2173
else
2177
- {
2178
- pg_log_error ("publication \"%s\" specified more than once" , optarg );
2179
- exit (1 );
2180
- }
2174
+ pg_fatal ("publication \"%s\" specified more than once for --publication" , optarg );
2181
2175
break ;
2182
2176
case 3 :
2183
2177
if (!simple_string_list_member (& opt .replslot_names , optarg ))
@@ -2186,10 +2180,7 @@ main(int argc, char **argv)
2186
2180
num_replslots ++ ;
2187
2181
}
2188
2182
else
2189
- {
2190
- pg_log_error ("replication slot \"%s\" specified more than once" , optarg );
2191
- exit (1 );
2192
- }
2183
+ pg_fatal ("replication slot \"%s\" specified more than once for --replication-slot" , optarg );
2193
2184
break ;
2194
2185
case 4 :
2195
2186
if (!simple_string_list_member (& opt .sub_names , optarg ))
@@ -2198,10 +2189,7 @@ main(int argc, char **argv)
2198
2189
num_subs ++ ;
2199
2190
}
2200
2191
else
2201
- {
2202
- pg_log_error ("subscription \"%s\" specified more than once" , optarg );
2203
- exit (1 );
2204
- }
2192
+ pg_fatal ("subscription \"%s\" specified more than once for --subscription" , optarg );
2205
2193
break ;
2206
2194
default :
2207
2195
/* getopt_long already emitted a complaint */
@@ -2226,7 +2214,7 @@ main(int argc, char **argv)
2226
2214
2227
2215
if (bad_switch )
2228
2216
{
2229
- pg_log_error ("%s cannot be used with --all" , bad_switch );
2217
+ pg_log_error ("%s cannot be used with -a/- -all" , bad_switch );
2230
2218
pg_log_error_hint ("Try \"%s --help\" for more information." , progname );
2231
2219
exit (1 );
2232
2220
}
@@ -2352,7 +2340,7 @@ main(int argc, char **argv)
2352
2340
dbinfos .objecttypes_to_remove |= OBJECTTYPE_PUBLICATIONS ;
2353
2341
else
2354
2342
{
2355
- pg_log_error ("invalid object type \"%s\" specified for --remove" , cell -> val );
2343
+ pg_log_error ("invalid object type \"%s\" specified for -R/- -remove" , cell -> val );
2356
2344
pg_log_error_hint ("The valid option is: \"publications\"" );
2357
2345
exit (1 );
2358
2346
}
0 commit comments