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:
gfgtdf 2016-10-21 22:40:11 +02:00 committed by GitHub
parent c47bede654
commit 2f6bb71b82

View file

@ -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";
}
}
}