summaryrefslogtreecommitdiffhomepage
path: root/webserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'webserver.cpp')
-rw-r--r--webserver.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/webserver.cpp b/webserver.cpp
index 2574272..3f7a2a3 100644
--- a/webserver.cpp
+++ b/webserver.cpp
@@ -33,7 +33,13 @@ int main(int argc, char* argv[])
try {
Config config{config_filename};
- load_plugins(config);
+
+ PluginLoader plugin_loader(config);
+ plugin_loader.load_plugins();
+
+ if (!plugin_loader.validate_config())
+ throw std::runtime_error("Couldn't find all configured plugins.");
+
return http_server(argc, argv);
} catch (const std::exception& ex) {
std::cout << "Error: " << ex.what() << std::endl;