diff options
author | Weblate <42@minetest.ru> | 2013-04-18 20:00:16 +0200 |
---|---|---|
committer | Weblate <42@minetest.ru> | 2013-04-18 20:00:16 +0200 |
commit | 9e6376bd95ba9309365b39b878ab2f499776437a (patch) | |
tree | a354a250daedf036cc36e33d3d1ebb9fafc4ac27 /src/main.cpp | |
parent | e385af7cc01d156164b85d10b00a7047a5372e66 (diff) | |
parent | e60eb32050a44d344795e4a1515a56038bb97e02 (diff) | |
download | minetest-9e6376bd95ba9309365b39b878ab2f499776437a.tar.gz minetest-9e6376bd95ba9309365b39b878ab2f499776437a.tar.bz2 minetest-9e6376bd95ba9309365b39b878ab2f499776437a.zip |
Merge remote branch 'origin/master'
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/main.cpp b/src/main.cpp index 08af6a37d..eef65cdb2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1501,7 +1501,9 @@ int main(int argc, char *argv[]) while(device->run() && kill == false) { // Set the window caption - device->setWindowCaption((std::wstring(L"Minetest [")+wgettext("Main Menu")+L"]").c_str()); + wchar_t* text = wgettext("Main Menu"); + device->setWindowCaption((std::wstring(L"Minetest [")+text+L"]").c_str()); + delete[] text; // This is used for catching disconnects try @@ -1902,16 +1904,6 @@ int main(int argc, char *argv[]) error_message = wgettext("Connection error (timed out?)"); errorstream<<wide_to_narrow(error_message)<<std::endl; } - catch(ServerError &e) - { - error_message = narrow_to_wide(e.what()); - errorstream<<wide_to_narrow(error_message)<<std::endl; - } - catch(ModError &e) - { - errorstream<<e.what()<<std::endl; - error_message = narrow_to_wide(e.what()) + wgettext("\nCheck debug.txt for details."); - } #ifdef NDEBUG catch(std::exception &e) { |