Skip to content

Commit

Permalink
Added more readable error when executor is not available (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
smarr committed Apr 25, 2023
2 parents af6f674 + 13302a5 commit b7280b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rebench/configurator.py
Expand Up @@ -287,6 +287,10 @@ def has_executor(self, executor_name):
return executor_name in self._executors

def get_executor(self, executor_name, run_details, variables, action):
if executor_name not in self._executors:
raise ConfigurationError(
"An experiment tries to use an undefined executor: %s" % executor_name)

executor = Executor.compile(
executor_name, self._executors[executor_name],
run_details, variables, self.build_commands, action)
Expand Down

0 comments on commit b7280b3

Please sign in to comment.