Skip to content

Commit

Permalink
Merge pull request #2210 from lonvia/errorcode-on-exception
Browse files Browse the repository at this point in the history
Make osm2pgsql-replication return a non-null error code on exception
  • Loading branch information
joto authored Jul 10, 2024
2 parents f0433c2 + 41b069e commit e1ee7a6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/osm2pgsql-replication
Original file line number Diff line number Diff line change
Expand Up @@ -721,4 +721,10 @@ def main(prog_args=None):


if __name__ == '__main__':
sys.exit(main())
try:
retcode = main()
except Exception as ex:
LOG.fatal("Exception during execution: %s", ex)
retcode = 3

sys.exit(retcode)

0 comments on commit e1ee7a6

Please sign in to comment.