Skip to content

Commit eb0ca20

Browse files
authored
Merge pull request #113 from dentonmwood/master
Added better error messages to CLI
2 parents cd9e74b + a748e3a commit eb0ca20

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

engine/algorithms/algorithm_runner.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ def run_single_repo(modules, algorithm):
2626
return oxygen(modules)
2727
elif algorithm == CHLORINE:
2828
return chlorine_single_repo(modules)
29+
elif algorithm == IODINE:
30+
raise UserInputError(f"\"{algorithm}\" can only be run with two repositories")
2931
else:
3032
raise UserInputError(f"Invalid algorithm name: \"{algorithm}\"")
3133

@@ -50,5 +52,7 @@ def run_two_repos(modules1, modules2, algorithm):
5052
return chlorine_two_repos(modules1, modules2)
5153
elif algorithm == IODINE:
5254
return iodine(modules1, modules2)
55+
elif algorithm == OXYGEN:
56+
raise UserInputError(f"\"{algorithm}\" can only be run with one repository")
5357
else:
5458
raise UserInputError(f"Invalid algorithm name: \"{algorithm}\"")

0 commit comments

Comments
 (0)