aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorJuozas <juozaspo@gmail.com>2017-08-09 04:04:06 +0300
committerrubenwardy <rubenwardy@gmail.com>2017-08-09 02:04:06 +0100
commit837328fbacd5fe95795d4b645a819618dae951f3 (patch)
tree6b813b2ba54cccf5dfdc96ee734bc45092be4f46 /src/client
parentb9ab51dd81bb15fb4d718ab0b3c6e06d0cab5141 (diff)
downloadminetest-837328fbacd5fe95795d4b645a819618dae951f3.tar.gz
minetest-837328fbacd5fe95795d4b645a819618dae951f3.tar.bz2
minetest-837328fbacd5fe95795d4b645a819618dae951f3.zip
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.
Diffstat (limited to 'src/client')
-rw-r--r--src/client/clientlauncher.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}