Fix error not printed to console when no name is provided
authorJuozas <juozaspo@gmail.com>
Wed, 9 Aug 2017 01:04:06 +0000 (04:04 +0300)
committerrubenwardy <rubenwardy@gmail.com>
Wed, 9 Aug 2017 01:04:06 +0000 (02:04 +0100)
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

index 718255cad39432ddff21f3cbca8738f21fde09e9..66e3f9a72276f016f0648a531958659b79ab11f9 100644 (file)
@@ -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;
        }