Tweak exception handling when loading revisions
This commit is contained in:
parent
481b1c186f
commit
570c667222
1 changed files with 8 additions and 9 deletions
|
|
@ -1790,27 +1790,26 @@ SKIP LOCKED")
|
||||||
id commit source)
|
id commit source)
|
||||||
|
|
||||||
(if (eq?
|
(if (eq?
|
||||||
(with-time-logging (string-append "loading revision " commit)
|
(with-time-logging (string-append "processing revision " commit)
|
||||||
(setup-logging
|
(setup-logging
|
||||||
id
|
id
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(with-exception-handler
|
(with-exception-handler
|
||||||
(const #f)
|
(const #f)
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(with-exception-handler
|
(with-throw-handler #t
|
||||||
(lambda (exn)
|
|
||||||
(simple-format (current-error-port)
|
|
||||||
"error: load-new-guix-revision: ~A\n"
|
|
||||||
exn)
|
|
||||||
(backtrace)
|
|
||||||
#f)
|
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(with-store-connection
|
(with-store-connection
|
||||||
(lambda (store)
|
(lambda (store)
|
||||||
(load-new-guix-revision conn
|
(load-new-guix-revision conn
|
||||||
store
|
store
|
||||||
git-repository-id
|
git-repository-id
|
||||||
commit))))))
|
commit))))
|
||||||
|
(lambda (key . args)
|
||||||
|
(simple-format (current-error-port)
|
||||||
|
"error: load-new-guix-revision: ~A ~A\n"
|
||||||
|
key args)
|
||||||
|
(backtrace))))
|
||||||
#:unwind? #t))))
|
#:unwind? #t))))
|
||||||
#t)
|
#t)
|
||||||
(begin
|
(begin
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue