From b65230cd34d53ec337b82d9f1dc8fcc543bd262e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 14 Jun 2026 17:32:15 +0100 Subject: 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. --- src/modules.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/modules.cpp') 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); } } -- cgit v1.3.1-10-gc9f91