Skip to content

Commit

Permalink
updating error message
Browse files Browse the repository at this point in the history
  • Loading branch information
aineniamh committed Jul 12, 2023
1 parent ff55334 commit 050b03e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hedgehog/utils/dependency_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ def check_dependencies():

if missing:
if len(missing)==1:
sys.stderr.write(colour.cyan(f'Error: Missing dependency `{missing[0]}`.')+'\nPlease update your civet environment.\n')
sys.stderr.write(colour.cyan(f'Error: Missing dependency `{missing[0]}`.')+'\nPlease update your hedgehog dependencies (or environment if using conda.\n')
sys.exit(-1)
else:
dependencies = ""
for i in missing:
dependencies+=f"\t- {i}\n"

sys.stderr.write(colour.cyan(f'Error: Missing dependencies.')+f'\n{dependencies}Please update your civet environment.\n')
sys.stderr.write(colour.cyan(f'Error: Missing dependencies.')+f'\n{dependencies}Please update your hedgehog dependencies (or environment if using conda).\n')
sys.exit(-1)
else:
print(colour.green("All dependencies satisfied."))
Expand Down

0 comments on commit 050b03e

Please sign in to comment.