Skip to content

Commit

Permalink
better logging for directory
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinMenden committed Mar 22, 2021
1 parent 9439b3c commit a316a3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nf_core/modules/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,10 @@ def get_repo_type(self, directory):
elif os.path.exists(os.path.join(directory, "software")):
return "modules"
else:
raise UserWarning(f"Could not determine repository type: '{directory}'")
raise UserWarning(
f"This directory does not look like a clone of nf-core/modules or an nf-core pipeline: '{directory}'"
" Please point to a valid directory."
)

def get_module_dirs(self):
"""Given a directory and a tool/subtool, set the file paths and check if they already exist
Expand Down

0 comments on commit a316a3a

Please sign in to comment.