Managers: improve an error message.

This commit is contained in:
Guillaume Jacquemin 2024-07-24 19:40:50 +02:00
parent 205c502c54
commit 4bcd9521b3
Signed by: williamjcm
SSH key fingerprint: SHA256:AYLOg+iTV0ElElnlu4vqM4edFazVdRiuQB0Y5LoKc4A

View file

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