mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
services: herd: Fix matching ok responses from shepherd service.
Previously the match expression case for a successful response (where error is #f) required that the result component contained a list with a single element. As far as I see when looking at the responses from the shepherd, this is not normally the case. Therefore, to avoid treating successful responses as errors, make the match requirement more permissive, accepting any value. * gnu/services/herd.scm (invoke-action): Change match condition for ok responses.
This commit is contained in:
parent
65831c6425
commit
dc7b3e5633
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ (define* (invoke-action service action arguments cont)
|
|||
(force-output sock)
|
||||
|
||||
(match (read sock)
|
||||
(('reply ('version 0 _ ...) ('result (result)) ('error #f)
|
||||
(('reply ('version 0 _ ...) ('result result) ('error #f)
|
||||
('messages messages))
|
||||
(for-each display-message messages)
|
||||
(cont result))
|
||||
|
|
Loading…
Reference in a new issue