diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2012-02-20 09:22:41 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2012-02-20 09:22:41 +0100 |
commit | 1e54a73bf0dd19d2b7797d1648e9ee442a5a7bf1 (patch) | |
tree | 303d9a3c94fc8e137427c5e092ceb56ba3364dc8 /lisp/url/url.el | |
parent | ab1ce9d7e2d5bda36e361583237e0b76a4a17298 (diff) | |
download | emacs-1e54a73bf0dd19d2b7797d1648e9ee442a5a7bf1.tar.gz emacs-1e54a73bf0dd19d2b7797d1648e9ee442a5a7bf1.tar.bz2 emacs-1e54a73bf0dd19d2b7797d1648e9ee442a5a7bf1.zip |
Warn instead of erroring when pruning the URL cache
* url.el (url-retrieve-internal): Warn about file errors when
pruning the cache instead of bugging out.
Diffstat (limited to 'lisp/url/url.el')
-rw-r--r-- | lisp/url/url.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/url/url.el b/lisp/url/url.el index 933bceb2e6f..5ced789e4e4 100644 --- a/lisp/url/url.el +++ b/lisp/url/url.el @@ -186,7 +186,10 @@ the server." (setf (url-use-cookies url) (not inhibit-cookies)) ;; Once in a while, remove old entries from the URL cache. (when (zerop (% url-retrieve-number-of-calls 1000)) - (url-cache-prune-cache)) + (condition-case error + (url-cache-prune-cache) + (file-error + (message "Error when expiring the cache: %s" error)))) (setq url-retrieve-number-of-calls (1+ url-retrieve-number-of-calls)) (let ((loader (url-scheme-get-property (url-type url) 'loader)) (url-using-proxy (if (url-host url) |