mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +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:
parent
45f84beaf1
commit
d286c8ce34
1 changed files with 5 additions and 1 deletions
|
@ -50,7 +50,7 @@
|
||||||
(lambda () (%start-stack #t thunk))
|
(lambda () (%start-stack #t thunk))
|
||||||
|
|
||||||
(case post-error
|
(case post-error
|
||||||
((catch)
|
((report)
|
||||||
(lambda (key . args)
|
(lambda (key . args)
|
||||||
(if (memq key pass-keys)
|
(if (memq key pass-keys)
|
||||||
(apply throw key args)
|
(apply throw key args)
|
||||||
|
@ -67,6 +67,10 @@
|
||||||
(format err "\nERROR: uncaught throw to `~a', args: ~a\n"
|
(format err "\nERROR: uncaught throw to `~a', args: ~a\n"
|
||||||
key args)))
|
key args)))
|
||||||
(if #f #f)))))
|
(if #f #f)))))
|
||||||
|
((catch)
|
||||||
|
(lambda (key . args)
|
||||||
|
(if (memq key pass-keys)
|
||||||
|
(apply throw key args))))
|
||||||
(else
|
(else
|
||||||
(if (procedure? post-error)
|
(if (procedure? post-error)
|
||||||
post-error ; a handler proc
|
post-error ; a handler proc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue