Skip to content

Commit ae7fb4d

Browse files
committed
Move everything that can fail into try block in main
1 parent 9d325d3 commit ae7fb4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/osm2pgsql.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ static std::shared_ptr<middle_t> create_middle(options_t const &options)
4949

5050
int main(int argc, char *argv[])
5151
{
52-
fmt::print(stderr, "osm2pgsql version {}\n\n", get_osm2pgsql_version());
53-
5452
try {
53+
fmt::print(stderr, "osm2pgsql version {}\n\n", get_osm2pgsql_version());
54+
5555
options_t const options{argc, argv};
5656
if (options.long_usage_bool) {
5757
return 0;

0 commit comments

Comments
 (0)