Skip to content

Commit 4a8f42b

Browse files
authored
Merge pull request #2113 from joto/check-for-flex
Check that we are using flex output in osm2pgsql-gen
2 parents 672bc7e + 26dd4e6 commit 4a8f42b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/gen/osm2pgsql-gen.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,11 @@ int main(int argc, char *argv[])
796796
}
797797
}
798798

799+
if (properties.get_string("output", "flex") != "flex") {
800+
throw std::runtime_error{
801+
"osm2pgsql-gen only works with flex output"};
802+
}
803+
799804
bool const updatable = properties.get_bool("updatable", false);
800805
genproc_t gen{style, conninfo, dbschema, append, updatable, jobs};
801806
gen.run();

0 commit comments

Comments
 (0)