aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
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)
{