Author: cazfi
Date: Sat Jan 24 19:47:07 2015
New Revision: 27805

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

See patch #5739

Modified:
    trunk/server/srv_main.c

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