Skip to content

Commit

Permalink
Merge pull request #81 from psteniusubi/fix-improve-accept-error-message
Browse files Browse the repository at this point in the history
improve startup error message when bind on http port fails
  • Loading branch information
pfeairheller authored Nov 22, 2023
2 parents ed98231 + 113c1bd commit 3bf34e2
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 3bf34e2

Please sign in to comment.