Add failed dependency to log

pull/1/head
hikari.ftg 2022-03-21 12:58:09 +00:00
parent 7ad89e4995
commit 846981be66
1 changed files with 4 additions and 2 deletions

View File

@ -46,9 +46,10 @@ else:
log.init()
try:
from . import main
except ModuleNotFoundError: # pragma: no cover
except ModuleNotFoundError as e: # pragma: no cover
print(
"Error: you have not installed all dependencies correctly.\n"
f"{str(e)}\n"
"Attempting dependencies installation... Just wait."
)
@ -56,9 +57,10 @@ else:
try:
from . import main
except ModuleNotFoundError:
except ModuleNotFoundError as e2:
print(
"Error while installing dependencies. Please, do this manually!\n"
f"{str(e2)}\n"
"pip3 install -r requirements.txt"
)