diff options
| author | Bozhidar Batsov <bozhidar@batsov.dev> | 2026-02-28 08:43:35 +0200 |
|---|---|---|
| committer | Bozhidar Batsov <bozhidar@batsov.dev> | 2026-02-28 08:54:10 +0200 |
| commit | 45a748039f4ed901e02bfe651c09e729e45d7450 (patch) | |
| tree | c5d7af7b048e8d1d4c4a72fc063bef8af0294c87 | |
| parent | 898b4f7c0bca298792fff4df947e27cf2a607c2c (diff) | |
Use display-warning for failed cache serialization
A plain message is easy to miss in the echo area. Use display-warning
so the failure is visible in the *Warnings* buffer and harder to
overlook, since a failed write means in-memory and on-disk caches
will silently diverge.
| -rw-r--r-- | projectile.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/projectile.el b/projectile.el index d1ef7b2..87c8530 100644 --- a/projectile.el +++ b/projectile.el @@ -1026,7 +1026,7 @@ The saved data can be restored with `projectile-unserialize'." (if (file-writable-p filename) (with-temp-file filename (insert (let (print-length) (prin1-to-string data)))) - (message "Projectile cache '%s' not writeable" filename))) + (display-warning 'projectile (format "Cache file '%s' is not writable" filename) :warning))) (defun projectile-unserialize (filename) "Read data serialized by `projectile-serialize' from FILENAME." |
