summaryrefslogtreecommitdiff
path: root/src/ini.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ini.cpp')
-rw-r--r--src/ini.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ini.cpp b/src/ini.cpp
index e82daaceb..11f79ed16 100644
--- a/src/ini.cpp
+++ b/src/ini.cpp
@@ -106,7 +106,9 @@ bool IniFile::SaveToDisk(const char *filename)
shfopt.pTo = tfilename;
SHFileOperation(&shfopt);
#else
- rename(file_new, filename);
+ if (rename(file_new, filename) < 0) {
+ DEBUG(misc, 0, "Renaming %s to %s failed; configuration not saved", file_new, filename);
+ }
#endif
return true;