From 155f81ca445eaa9ac2e039a683760ebb28cb3dc5 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Sun, 16 Aug 2020 17:00:23 +0100 Subject: [PATCH] Print why startup script was unsuccessful --- my-project-name | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/my-project-name b/my-project-name index 688af36..4b9c8ef 100755 --- a/my-project-name +++ b/my-project-name @@ -6,5 +6,5 @@ try: # Run the main function of the bot asyncio.get_event_loop().run_until_complete(main.main()) -except ImportError: - print("Unable to import my_project_main.main") +except ImportError as e: + print("Unable to import my_project_name.main:", e)