Author: cazfi
Date: Sat Jan 24 19:47:14 2015
New Revision: 27806

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

See patch #5739

Modified:
    branches/S2_6/server/srv_main.c

Modified: branches/S2_6/server/srv_main.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/srv_main.c?rev=27806&r1=27805&r2=27806&view=diff
==============================================================================
--- branches/S2_6/server/srv_main.c     (original)
+++ branches/S2_6/server/srv_main.c     Sat Jan 24 19:47:14 2015
@@ -1417,6 +1417,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