chg: [server] Fail if server could not be started

pull/651/head
Jakub Onderka 2024-01-09 12:19:23 +01:00
parent 1ceda398cd
commit 9446fd2ac6
1 changed files with 3 additions and 0 deletions

View File

@ -303,6 +303,9 @@ def main():
return 1
print(e)
print("misp-modules might still be running.")
else:
log.exception(f"Could not listen on {args.listen}:{args.port}")
return 1
log.info(f'MISP modules server started on {args.listen} port {args.port}')
if args.test: