From: Juozas Date: Wed, 9 Aug 2017 01:04:06 +0000 (+0300) Subject: Fix error not printed to console when no name is provided X-Git-Tag: 5.0.0~975 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=837328fbacd5fe95795d4b645a819618dae951f3;p=oweals%2Fminetest.git Fix error not printed to console when no name is provided When minetest is launched, if there was no nameprovided in configuration or parameters, the game would not show any error in console. if the --go parameter was also prowided, the game would exit without an error. This is undesired behavior, so this merged commit add the missing function that displays the missing error message in console. --- diff --git a/src/client/clientlauncher.cpp b/src/client/clientlauncher.cpp index 718255cad..66e3f9a72 100644 --- a/src/client/clientlauncher.cpp +++ b/src/client/clientlauncher.cpp @@ -401,6 +401,7 @@ bool ClientLauncher::launch_game(std::string &error_message, if (menudata.name == "" && !simple_singleplayer_mode) { error_message = gettext("Please choose a name!"); + errorstream << error_message << std::endl; return false; }