1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00

Fixed the exception handler of `guilec'.

* src/guilec.in: Fixed the exception handler.

git-archimport-id: lcourtes@laas.fr--2005-mobile/guile-vm--mobile--0.6--patch-12
This commit is contained in:
Ludovic Courtes 2006-01-02 18:05:23 +00:00 committed by Ludovic Courtès
parent 23b587b0a1
commit a316e42d98

View file

@ -62,7 +62,13 @@ Report bugs to <guile-user@gnu.org>.~%")
(for-each (lambda (file)
(apply compile-file (cons file compile-opts)))
(option-ref options '() '())))
(lambda ()
(lambda (key . args)
(format (current-error-port) "exception `~a' caught~a~%" key
(if (null? args) ""
(if (string? (car args))
(string-append " in subr `" (car args) "'")
"")))
(format (current-error-port) "removing compiled files due to errors~%")
(false-if-exception
(for-each unlink (map compiled-file-name files)))