Skip to content

Commit fd41051

Browse files
committed
Print list of errored repo installs
1 parent da2c58b commit fd41051

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

planemo/galaxy/workflows.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,17 @@ def install_shed_repos(
8888
install_results.errored_repositories.extend(update_results.errored_repositories)
8989
updated_repos = update_results.installed_repositories
9090
else:
91-
updated_repos = None
91+
updated_repos = []
9292

9393
if install_results.errored_repositories:
94+
msg = f"{FAILED_REPOSITORIES_MESSAGE}: \n{yaml.safe_dump(install_results.errored_repositories)}"
9495
if ignore_dependency_problems:
95-
warn(FAILED_REPOSITORIES_MESSAGE)
96+
warn(msg)
9697
else:
97-
raise Exception(FAILED_REPOSITORIES_MESSAGE)
98-
return install_results.installed_repositories, updated_repos
98+
raise Exception(msg)
99+
return InstalledShedRepos(install_results.installed_repositories, updated_repos)
99100
else:
100-
return None, None
101+
return InstalledShedRepos([], [])
101102

102103

103104
def import_workflow(path, admin_gi, user_gi, from_path=False):

0 commit comments

Comments
 (0)