Author: cazfi
Date: Fri Dec 16 10:28:43 2016
New Revision: 34720

URL: http://svn.gna.org/viewcvs/freeciv?rev=34720&view=rev
Log:
Give sensible error message when savefile cannot be opened for writing. This 
helps only
when no compression is being used.

Originally reported by Dumbo <dumbo> in bug #25387

See patch #8048

Modified:
    trunk/utility/registry_ini.c

Modified: trunk/utility/registry_ini.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/utility/registry_ini.c?rev=34720&r1=34719&r2=34720&view=diff
==============================================================================
--- trunk/utility/registry_ini.c        (original)
+++ trunk/utility/registry_ini.c        Fri Dec 16 10:28:43 2016
@@ -647,6 +647,8 @@
                     compression_method, compression_level);
 
   if (!fs) {
+    SECFILE_LOG(secfile, NULL, _("Can't open %s for writing"), real_filename);
+
     return FALSE;
   }
 


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

Reply via email to