diff options
author | Juozas <juozaspo@gmail.com> | 2017-08-09 04:04:06 +0300 |
---|---|---|
committer | rubenwardy <rubenwardy@gmail.com> | 2017-08-09 02:04:06 +0100 |
commit | 837328fbacd5fe95795d4b645a819618dae951f3 (patch) | |
tree | 6b813b2ba54cccf5dfdc96ee734bc45092be4f46 | |
parent | b9ab51dd81bb15fb4d718ab0b3c6e06d0cab5141 (diff) | |
download | minetest-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.
-rw-r--r-- | src/client/clientlauncher.cpp | 1 |
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; } |