Capture the raw continuation of the exception if evaluation fails
This commit is contained in:
parent
f8a30e3523
commit
c5447bc2cd
|
@ -617,10 +617,11 @@
|
||||||
(define eval-expression
|
(define eval-expression
|
||||||
(let ((env (init-evaluation-environment 'nuit-eval)))
|
(let ((env (init-evaluation-environment 'nuit-eval)))
|
||||||
(lambda (exp)
|
(lambda (exp)
|
||||||
(with-fatal-error-handler
|
(with-fatal-and-capturing-error-handler
|
||||||
(lambda (condition more)
|
(lambda (condition continuation decline)
|
||||||
(cons 'error condition))
|
continuation)
|
||||||
(eval (read-sexp-from-string exp) env)))))
|
(lambda ()
|
||||||
|
(eval (read-sexp-from-string exp) env))))))
|
||||||
|
|
||||||
(define (post-message plugin message)
|
(define (post-message plugin message)
|
||||||
(cond
|
(cond
|
||||||
|
|
Loading…
Reference in New Issue