From 837328fbacd5fe95795d4b645a819618dae951f3 Mon Sep 17 00:00:00 2001 From: Juozas Date: Wed, 9 Aug 2017 04:04:06 +0300 Subject: [PATCH] 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. --- src/client/clientlauncher.cpp | 1 + 1 file changed, 1 insertion(+) 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; }