Author: cazfi
Date: Sat Jan 24 19:47:21 2015
New Revision: 27807

URL: http://svn.gna.org/viewcvs/freeciv?rev=27807&view=rev
Log:
Write a log message about failure to save a game.

See patch #5739

Modified:
    branches/S2_5/server/srv_main.c

Modified: branches/S2_5/server/srv_main.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/server/srv_main.c?rev=27807&r1=27806&r2=27807&view=diff
==============================================================================
--- branches/S2_5/server/srv_main.c     (original)
+++ branches/S2_5/server/srv_main.c     Sat Jan 24 19:47:21 2015
@@ -1297,6 +1297,7 @@
   if (!secfile_save(file, filepath, game.server.save_compress_level,
                     game.server.save_compress_type)) {
     con_write(C_FAIL, _("Failed saving game as %s"), filepath);
+    log_error("Game saving failed: %s", secfile_error());
   } else {
     con_write(C_OK, _("Game saved as %s"), filepath);
   }


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to