diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-12-03 03:23:14 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-12-03 03:23:14 +0200 |
commit | 2f4a92d70192468096e35974f0725532aef837b1 (patch) | |
tree | f8933e9d19539021d07e46ea268fa5bd4347feb7 /src/servermain.cpp | |
parent | 324c5449224e010a2cebbebff11fba2f2b96d7b0 (diff) | |
download | minetest-2f4a92d70192468096e35974f0725532aef837b1.tar.gz minetest-2f4a92d70192468096e35974f0725532aef837b1.tar.bz2 minetest-2f4a92d70192468096e35974f0725532aef837b1.zip |
Better mod loading error handling
Diffstat (limited to 'src/servermain.cpp')
-rw-r--r-- | src/servermain.cpp | 5 |
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) |