mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 14:07:01 +01:00
guix home, system: Use 'leave' to report missing generations.
Fixes <https://issues.guix.gnu.org/50982>. Reported by Xinglu Chen <public@yoctocell.xyz>. Fixes a typo ('error' instead of 'leave') introduced in158032bd7d
and copied in89e05a6955
. * guix/scripts/system.scm (process-command): Use 'leave', not 'error'. * guix/scripts/home.scm (process-command): Likewise.
This commit is contained in:
parent
9f526f5dad
commit
a9268216e4
2 changed files with 2 additions and 2 deletions
|
@ -286,7 +286,7 @@ (define-syntax-rule (with-store* store exp ...)
|
|||
((describe)
|
||||
(match (generation-number %guix-home)
|
||||
(0
|
||||
(error (G_ "no home environment generation, nothing to describe~%")))
|
||||
(leave (G_ "no home environment generation, nothing to describe~%")))
|
||||
(generation
|
||||
(display-home-environment-generation generation))))
|
||||
((list-generations)
|
||||
|
|
|
@ -1321,7 +1321,7 @@ (define-syntax-rule (with-store* store exp ...)
|
|||
((describe)
|
||||
(match (generation-number %system-profile)
|
||||
(0
|
||||
(error (G_ "no system generation, nothing to describe~%")))
|
||||
(leave (G_ "no system generation, nothing to describe~%")))
|
||||
(generation
|
||||
(display-system-generation generation))))
|
||||
((search)
|
||||
|
|
Loading…
Reference in a new issue