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:
parent
324c544922
commit
2f4a92d701
6 changed files with 174 additions and 89 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue