Add error handling for startup failures
This commit is contained in:
parent
65f92ca701
commit
7f5f11048b
1 changed files with 20 additions and 13 deletions
|
|
@ -200,6 +200,13 @@
|
|||
(start-substitute-query-threads)
|
||||
|
||||
(call-with-new-thread
|
||||
(lambda ()
|
||||
(with-exception-handler
|
||||
(lambda (exn)
|
||||
(simple-format
|
||||
(current-error-port)
|
||||
"startup failed: ~A\n" exn)
|
||||
(exit 1))
|
||||
(lambda ()
|
||||
(run-sqitch)
|
||||
|
||||
|
|
@ -216,7 +223,7 @@
|
|||
"poll-startup"
|
||||
all-git-repositories))
|
||||
|
||||
(atomic-box-set! startup-completed #t)))
|
||||
(atomic-box-set! startup-completed #t)))))
|
||||
|
||||
;; Provide some visual space between the startup output and the
|
||||
;; server starting
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue