diff options
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/server.cpp b/src/server.cpp index 93767da9d..06e7b9d50 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -425,14 +425,10 @@ void Server::init() m_modmgr = std::make_unique<ServerModManager>(m_path_world); std::vector<ModSpec> unsatisfied_mods = m_modmgr->getUnsatisfiedMods(); - // complain about mods with unsatisfied dependencies if (!m_modmgr->isConsistent()) { - m_modmgr->printUnsatisfiedModsError(); - - warningstream - << "You have unsatisfied dependencies, loading your world anyway. " - << "This will become a fatal error in the future." << std::endl; + std::string error = m_modmgr->getUnsatisfiedModsError(); + throw ServerError(error); } //lock environment |