emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/projectile 584ff42: Show a warning if the projectile cache


From: ELPA Syncer
Subject: [nongnu] elpa/projectile 584ff42: Show a warning if the projectile cache is not writable
Date: Wed, 3 Nov 2021 16:58:01 -0400 (EDT)

branch: elpa/projectile
commit 584ff420b2c5637b05be5c4808754d6e947ab6c1
Author: Christian Koestlin <christian.koestlin@gmail.com>
Commit: Bozhidar Batsov <bozhidar@batsov.dev>

    Show a warning if the projectile cache is not writable
---
 projectile.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/projectile.el b/projectile.el
index 7a1387b..b1aadac 100644
--- a/projectile.el
+++ b/projectile.el
@@ -860,9 +860,10 @@ specify a project explicitly via the optional PROJECT 
param."
   "Serialize DATA to FILENAME.
 
 The saved data can be restored with `projectile-unserialize'."
-  (when (file-writable-p filename)
+  (if (file-writable-p filename)
     (with-temp-file filename
-      (insert (let (print-length) (prin1-to-string data))))))
+      (insert (let (print-length) (prin1-to-string data))))
+    (message "Projectile cache '%s' not writeable" filename)))
 
 (defun projectile-unserialize (filename)
   "Read data serialized by `projectile-serialize' from FILENAME."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]