Skip to content

Commit

Permalink
Fix error not printed to console when no name is provided
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
juozaspo authored and rubenwardy committed Aug 9, 2017
1 parent b9ab51d commit 837328f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/clientlauncher.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit 837328f

Please sign in to comment.