1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 20:11:20 +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,
check_mandatory=False)
if config:
msg = 'conflicting entry(ies) for "{}" in {}: "{}"'
msg = msg.format(self.workload_name, source.name,
'", "'.join(workload_params[source]))
msg = 'Unexpected config "{}" for "{}"'
raise ConfigError(msg.format(config, self.workload_name))
self.workload_parameters = workload_params