aboutsummaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-06-14 17:32:15 +0100
committerGravatar Sadie Powell2026-06-14 22:08:28 +0100
commitb65230cd34d53ec337b82d9f1dc8fcc543bd262e (patch)
treeafb9064639e00c800516c0a69d943d8abfbc4ab4 /src/modules.cpp
parentFix building ssl_openssl on OpenSSL 4. (diff)
Improve the output printed when starting up.
* Use a better startup message with links to documentation and other useful pages. * Use a red "Error!" and a yellow "Warning!" prefix consistently for all errors and warnings respectively. * Don't mention loading core modules. This is an implementation detail that isn't really relevant for most users. * Avoid printing unnecessary whitespace around module errors.
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 105653806..8c46b923f 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -560,9 +560,7 @@ void ModuleManager::LoadAll()
fmt::println("[{}] Loading module:\t{}", fmt::styled("*", fmt::emphasis::bold | fmt::fg(fmt::terminal_color::green)), name);
if (!this->Load(name, true))
{
- fmt::println("");
fmt::println("[{}] {}", fmt::styled("*", fmt::emphasis::bold | fmt::fg(fmt::terminal_color::red)), LastError());
- fmt::println("");
ServerInstance->Exit(EXIT_FAILURE);
}
}
@@ -581,9 +579,7 @@ void ModuleManager::LoadAll()
{
LastModuleError = "Unable to initialize " + modname + ": " + modexcept.GetReason();
ServerInstance->Logs.Critical("MODULE", LastModuleError);
- fmt::println("");
fmt::println("[{}] {}", fmt::styled("*", fmt::emphasis::bold | fmt::fg(fmt::terminal_color::red)), LastModuleError);
- fmt::println("");
ServerInstance->Exit(EXIT_FAILURE);
}
}
@@ -605,9 +601,7 @@ void ModuleManager::LoadAll()
{
LastModuleError = "Unable to read the configuration for " + modname + ": " + modexcept.GetReason();
ServerInstance->Logs.Critical("MODULE", LastModuleError);
- fmt::println("");
fmt::println("[{}] {}", fmt::styled("*", fmt::emphasis::bold | fmt::fg(fmt::terminal_color::red)), LastModuleError);
- fmt::println("");
ServerInstance->Exit(EXIT_FAILURE);
}
}