aboutsummaryrefslogtreecommitdiff
path: root/src/servermain.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-12-03 03:23:14 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-12-03 03:23:14 +0200
commit2f4a92d70192468096e35974f0725532aef837b1 (patch)
treef8933e9d19539021d07e46ea268fa5bd4347feb7 /src/servermain.cpp
parent324c5449224e010a2cebbebff11fba2f2b96d7b0 (diff)
downloadhax-minetest-server-2f4a92d70192468096e35974f0725532aef837b1.tar.gz
hax-minetest-server-2f4a92d70192468096e35974f0725532aef837b1.zip
Better mod loading error handling
Diffstat (limited to 'src/servermain.cpp')
-rw-r--r--src/servermain.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/servermain.cpp b/src/servermain.cpp
index 64853604b..e8a54512e 100644
--- a/src/servermain.cpp
+++ b/src/servermain.cpp
@@ -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)