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 inmaster158032bd7d
and copied in89e05a6955
. * guix/scripts/system.scm (process-command): Use 'leave', not 'error'. * guix/scripts/home.scm (process-command): Likewise.
parent
9f526f5dad
commit
a9268216e4
|
@ -286,7 +286,7 @@ deploy the home environment described by these files.\n")
|
|||
((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 @@ argument list and OPTS is the option alist."
|
|||
((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)
|
||||
|
|
Reference in New Issue