improve error message in case of an invalid unittype in [side]
Since the erromessage is now shown in ERR_NG_TC the user knowns tha this error happend during team creation.
This commit is contained in:
parent
c47bede654
commit
2f6bb71b82
1 changed files with 6 additions and 1 deletions
|
@ -283,7 +283,12 @@ protected:
|
|||
.allow_show(false);
|
||||
|
||||
for (const config *u : unit_configs_) {
|
||||
uc.add_unit(*u);
|
||||
try {
|
||||
uc.add_unit(*u);
|
||||
}
|
||||
catch (const unit_type::error& e) {
|
||||
ERR_NG_TC << e << "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue