Guard against build being missing from the output response
This commit is contained in:
parent
cc370fae56
commit
6f97cec962
1 changed files with 22 additions and 20 deletions
|
|
@ -234,6 +234,8 @@ initial connection on which HTTP requests are sent."
|
|||
(if data
|
||||
(catch #t
|
||||
(lambda ()
|
||||
(when (assoc-ref data "build")
|
||||
;; The build can be #f
|
||||
(let* ((derivation
|
||||
(assoc-ref data "derivation"))
|
||||
(build-id
|
||||
|
|
@ -253,7 +255,7 @@ initial connection on which HTTP requests are sent."
|
|||
(if (verbose-output?)
|
||||
(simple-format #t "found build for: ~A (~A)\n"
|
||||
output derivation)
|
||||
(display "-"))))
|
||||
(display "-")))))
|
||||
(lambda (key . args)
|
||||
(simple-format
|
||||
(current-error-port)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue