Commits

Anonymous committed af2e4bd

properly handle errors thrown when loading the init file

  • Participants
  • Parent commits dbf4944
  • Branches handle-init-file-errors

Comments (0)

Files changed (1)

henrietta-cache.scm

 
 (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)