Managers: improve an error message.
This commit is contained in:
parent
205c502c54
commit
4bcd9521b3
1 changed files with 1 additions and 2 deletions
|
@ -52,8 +52,7 @@ MassManager::hangar(std::int32_t hangar) {
|
|||
void
|
||||
MassManager::refreshHangar(std::int32_t hangar) {
|
||||
if(hangar < 0 || hangar >= 32) {
|
||||
_lastError = "Hangar index out of range.";
|
||||
LOG_ERROR(_lastError);
|
||||
LOG_ERROR(_lastError = Utility::format("Hangar index {} out of range.", hangar));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue