Skip to content

Commit 83b9fbe

Browse files
authored
Merge pull request #1940 from JakobMiksch/missing-arg
osm2pgsql-replication: fix error message
2 parents 5f07f68 + 21e57df commit 83b9fbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: scripts/osm2pgsql-replication

+2-2
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def init(conn, args):
300300
else:
301301
base_url, seq, date = get_replication_header(args.osm_file)
302302
if base_url is None or (seq is None and date is None):
303-
LOG.fatal("File '%s' has no usable replication headers. Use '--server' instead.")
303+
LOG.fatal("File '%s' has no usable replication headers. Use '--server' instead.", args.osm_file )
304304
return 1
305305

306306
repl = ReplicationServer(base_url)
@@ -464,7 +464,7 @@ def get_parser():
464464
help='Database server port')
465465
group.add_argument('-p', '--prefix', metavar='PREFIX', default='planet_osm',
466466
help="Prefix for table names (default 'planet_osm')")
467-
group.add_argument('--middle-schema', metavar='MIDDLE_SCHEMA', default='public',
467+
group.add_argument('--middle-schema', metavar='MIDDLE_SCHEMA', default='public',
468468
help='Name of the schema to store the table for the replication state in')
469469

470470
# Arguments for init

0 commit comments

Comments
 (0)