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:
parent
6571d012c2
commit
8e5fd929e2
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user