1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

don't re-print the error by default in call-with-error-handling

* module/system/repl/error-handling.scm (call-with-error-handling):
  Previous post-error changed to "report"; now "catch", the default,
  doesn't re-print the error.
This commit is contained in:
Andy Wingo 2010-07-15 12:47:58 +02:00
parent 45f84beaf1
commit d286c8ce34

View file

@ -50,7 +50,7 @@
(lambda () (%start-stack #t thunk))
(case post-error
((catch)
((report)
(lambda (key . args)
(if (memq key pass-keys)
(apply throw key args)
@ -67,6 +67,10 @@
(format err "\nERROR: uncaught throw to `~a', args: ~a\n"
key args)))
(if #f #f)))))
((catch)
(lambda (key . args)
(if (memq key pass-keys)
(apply throw key args))))
(else
(if (procedure? post-error)
post-error ; a handler proc