Better error for unknown global variant.
This commit is contained in:
parent
a503c5fdc6
commit
31d0c7d87c
|
|
@ -360,7 +360,10 @@ class CfgYamlReader(object):
|
|||
config_error("YAML config needs `kibot.version`.")
|
||||
# Solve the global variant
|
||||
if GS.global_variant:
|
||||
GS.solved_global_variant = RegOutput.check_variant(GS.global_variant)
|
||||
try:
|
||||
GS.solved_global_variant = RegOutput.check_variant(GS.global_variant)
|
||||
except KiPlotConfigurationError as e:
|
||||
config_error("In global section: "+str(e))
|
||||
return outputs
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue