diff options
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) |