summaryrefslogtreecommitdiff
path: root/src/main.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/main.cpp
parent324c5449224e010a2cebbebff11fba2f2b96d7b0 (diff)
downloadminetest-2f4a92d70192468096e35974f0725532aef837b1.tar.gz
minetest-2f4a92d70192468096e35974f0725532aef837b1.tar.bz2
minetest-2f4a92d70192468096e35974f0725532aef837b1.zip
Better mod loading error handling
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index c1b9d902b..83f532af1 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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)
{