Skip to content

Commit

Permalink
improve startup error message when bind on http port fails
Browse files Browse the repository at this point in the history
  • Loading branch information
psteniusubi committed Nov 16, 2023
1 parent ed98231 commit 113c1bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vlei/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
def launch(args):
app = falcon.App()
server = http.Server(port=int(args.http), app=app)
if not server.reopen():
raise RuntimeError(f"cannot create http server on port {int(args.http)}")
httpServerDoer = http.ServerDoer(server=server)

serving.loadEnds(app, schemaDir=args.schemaDir, credDir=args.credDir, oobiDir=args.oobiDir)
Expand Down

0 comments on commit 113c1bd

Please sign in to comment.