Skip to content

Commit

Permalink
🐛 Do not display FATAL ERROR on missing TractionMap file (isn't fatal).
Browse files Browse the repository at this point in the history
  • Loading branch information
ohlidalp committed May 19, 2021
1 parent f9c23cd commit aee5699
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/main/gameplay/Landusemap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include "Application.h"
#include "Collisions.h"
#include "Console.h"
#include "ErrorUtils.h"
#include "Language.h"
#include "TerrainManager.h"
Expand Down Expand Up @@ -85,9 +86,10 @@ int Landusemap::loadConfig(const Ogre::String& filename)
else
cfg.loadFromResourceSystem(filename, group, "\x09:=", true);
}
catch (Ogre::Exception& e)
catch (Ogre::Exception& e) // Already logged by OGRE
{
ErrorUtils::ShowError(_L("Error while loading landuse config"), e.getFullDescription());
App::GetConsole()->putMessage(Console::CONSOLE_MSGTYPE_TERRN, Console::CONSOLE_SYSTEM_ERROR,
fmt::format(_L("Could not load traction map; {}"), e.getDescription()));
return 1;
}

Expand Down

0 comments on commit aee5699

Please # to comment.