Navigation Menu

Skip to content

Commit

Permalink
Make serialization error message translatable
Browse files Browse the repository at this point in the history
Also don't show "probably running a different version" message in simple singleplayer mode
  • Loading branch information
kahrl committed Jul 14, 2015
1 parent 8ac0cf5 commit b30e8d8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/game.cpp
Expand Up @@ -4352,9 +4352,13 @@ void the_game(bool *kill,
}

} catch (SerializationError &e) {
error_message = std::string("A serialization error occurred:\n")
+ e.what() + "\n\nThe server is probably "
" running a different version of " PROJECT_NAME_C ".";
error_message = strgettext("A serialization error occurred:")
+ "\n" + e.what();
if (!simple_singleplayer_mode) {
error_message += "\n\n"
+ strgettext("The server is probably running a different version of")
+ " " PROJECT_NAME_C ".";
}
errorstream << error_message << std::endl;
} catch (ServerError &e) {
error_message = e.what();
Expand Down

0 comments on commit b30e8d8

Please sign in to comment.