In the top-level condition handler, exit only on errors and call
the surrounding handler for all other conditions.
This commit is contained in:
parent
069f638d8f
commit
a41eb3da04
14
scsh/top.scm
14
scsh/top.scm
|
@ -343,14 +343,14 @@
|
||||||
(parse-scsh-args (cdr all-args))
|
(parse-scsh-args (cdr all-args))
|
||||||
(with-handler
|
(with-handler
|
||||||
(lambda (cond more)
|
(lambda (cond more)
|
||||||
(if (warning? cond)
|
(if (error? cond)
|
||||||
(more)
|
(with-handler
|
||||||
(with-handler
|
(lambda (c m)
|
||||||
(lambda (c m)
|
(scheme-exit-now 1))
|
||||||
(scheme-exit-now 1))
|
(lambda ()
|
||||||
(lambda ()
|
|
||||||
(display-condition cond (current-error-port))
|
(display-condition cond (current-error-port))
|
||||||
(scsh-exit-now 1)))))
|
(scsh-exit-now 1)))
|
||||||
|
(more)))
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(with-scsh-initialized
|
(with-scsh-initialized
|
||||||
(not term-switch) context args
|
(not term-switch) context args
|
||||||
|
|
Loading…
Reference in New Issue