Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions easybuild/tools/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -1073,10 +1073,11 @@ def _easyconfigs_pr_common(paths, ecs, start_branch=None, pr_branch=None, start_
ec_paths.append(path)

if non_existing_paths:
raise EasyBuildError(
"One or more non-existing paths specified: %s", ', '.join(non_existing_paths),
exit_code=EasyBuildExit.OPTION_ERROR
)
msg = "One or more non-existing paths specified: " + ', '.join(non_existing_paths)
found_ecs = {ec['spec'] for ec in ecs if os.path.basename(ec['spec']) in non_existing_paths}
if found_ecs:
msg += '\nDid you mean: ' + ', '.join(found_ecs)
raise EasyBuildError(msg, exit_code=EasyBuildExit.OPTION_ERROR)

if not any(paths.values()):
raise EasyBuildError("No paths specified", exit_code=EasyBuildExit.OPTION_ERROR)
Expand Down