1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-19 04:21:17 +00:00

Core: Fixes error message for invalid config

Previously only an incorrect error message was generated without actually being
raised.
This commit is contained in:
Marc Bonnici 2017-06-09 10:19:26 +01:00
parent 6571d012c2
commit 8e5fd929e2

View File

@ -942,9 +942,8 @@ class JobSpec(Configuration):
cfg_point.set_value(workload_params, value, cfg_point.set_value(workload_params, value,
check_mandatory=False) check_mandatory=False)
if config: if config:
msg = 'conflicting entry(ies) for "{}" in {}: "{}"' msg = 'Unexpected config "{}" for "{}"'
msg = msg.format(self.workload_name, source.name, raise ConfigError(msg.format(config, self.workload_name))
'", "'.join(workload_params[source]))
self.workload_parameters = workload_params self.workload_parameters = workload_params