Skip to content

Commit

Permalink
Including exception message in dial service error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
SasaKaranovic committed Feb 15, 2024
1 parent d77ac31 commit 990ad5d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,9 +653,11 @@ def main(cmd_args=None):
set_logger_level(cmd_args.logging)
try:
Dial_API_Service().run_forever()
except Exception:
except Exception as e:
logger.exception("VU Dials API service crashed during setup.")
show_error_msg("Crashed", "VU Server has crashed unexpectedly!\r\nPlease check log files for more information.")
show_error_msg("Crashed", "VU Server has crashed unexpectedly!\r\n"
"Please check log files for more information.\r\n"
f"Error: {e}")
os._exit(0)

if __name__ == '__main__':
Expand Down

0 comments on commit 990ad5d

Please sign in to comment.