summaryrefslogtreecommitdiff
path: root/henrietta-cache.scm
diff options
context:
space:
mode:
authormoritz <moritz@twoticketsplease.de>2012-02-22 19:30:41 +0100
committermoritz <moritz@twoticketsplease.de>2012-02-22 19:30:41 +0100
commit1b3fa5bb34a50a25d35ae057d62ce3811840a4c8 (patch)
tree0099e30aa5d5daa43cb4774cbc9b86465f68101c /henrietta-cache.scm
parentf7608301daf1af4b39a11051829eabc6d5685df9 (diff)
downloadhenrietta-cache-1b3fa5bb34a50a25d35ae057d62ce3811840a4c8.tar.gz
properly handle errors thrown when loading the init file
Diffstat (limited to 'henrietta-cache.scm')
-rw-r--r--henrietta-cache.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/henrietta-cache.scm b/henrietta-cache.scm
index 8f63bba..f12efa9 100644
--- a/henrietta-cache.scm
+++ b/henrietta-cache.scm
@@ -230,7 +230,11 @@ EOF
(define (update-egg-cache)
(when *init-file*
- (load *init-file*))
+ (handle-exceptions exn
+ (begin
+ (fprintf (current-error-port) "Error loading init file ~A:\n" *init-file*)
+ (print-error-message exn (current-error-port)))
+ (load *init-file*)))
(for-each
(lambda (egg)