diff options
author | moritz <moritz@twoticketsplease.de> | 2012-02-22 19:30:41 +0100 |
---|---|---|
committer | moritz <moritz@twoticketsplease.de> | 2012-02-22 19:30:41 +0100 |
commit | 1b3fa5bb34a50a25d35ae057d62ce3811840a4c8 (patch) | |
tree | 0099e30aa5d5daa43cb4774cbc9b86465f68101c | |
parent | f7608301daf1af4b39a11051829eabc6d5685df9 (diff) | |
download | henrietta-cache-1b3fa5bb34a50a25d35ae057d62ce3811840a4c8.tar.gz |
properly handle errors thrown when loading the init file
-rw-r--r-- | henrietta-cache.scm | 6 |
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) |