1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Better mod loading error handling

This commit is contained in:
Perttu Ahola 2011-12-03 03:23:14 +02:00
parent 324c544922
commit 2f4a92d701
6 changed files with 174 additions and 89 deletions

View file

@ -429,6 +429,7 @@ Doing currently:
#include "settings.h"
#include "profiler.h"
#include "log.h"
#include "mods.h"
/*
Settings.
@ -1662,6 +1663,11 @@ int main(int argc, char *argv[])
errorstream<<"Socket error (port already in use?)"<<std::endl;
error_message = L"Socket error (port already in use?)";
}
catch(ModError &e)
{
errorstream<<e.what()<<std::endl;
error_message = narrow_to_wide(e.what());
}
#ifdef NDEBUG
catch(std::exception &e)
{