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

@@ -76,6 +76,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "log.h"
#include "nodedef.h" // For init_contentfeatures
#include "content_mapnode.h" // For content_mapnode_init
#include "mods.h"
/*
Settings.
@@ -365,6 +366,10 @@ int main(int argc, char *argv[])
{
errorstream<<"Connection timed out."<<std::endl;
}
catch(ModError &e)
{
errorstream<<e.what()<<std::endl;
}
END_DEBUG_EXCEPTION_HANDLER(errorstream)