mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
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.
This commit is contained in:
parent
b9ab51dd81
commit
837328fbac
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user