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/main.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/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
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) { |