mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
ui: Fix order of match clauses.
Fixes <https://bugs.gnu.org/45709>.
This is a follow-up to commit cf289d7cfa
.
* guix/ui.scm (run-guix-command): Match for #false first.
Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
This commit is contained in:
parent
d033540e6c
commit
a0f019b81f
1 changed files with 5 additions and 5 deletions
10
guix/ui.scm
10
guix/ui.scm
|
@ -13,7 +13,7 @@
|
|||
;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
|
||||
;;; Copyright © 2019 Chris Marusich <cmmarusich@gmail.com>
|
||||
;;; Copyright © 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;; Copyright © 2019 Simon Tournier <zimon.toutoune@gmail.com>
|
||||
;;; Copyright © 2019, 2021 Simon Tournier <zimon.toutoune@gmail.com>
|
||||
;;; Copyright © 2020 Arun Isaac <arunisaac@systemreboot.net>
|
||||
;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
;;;
|
||||
|
@ -2133,11 +2133,11 @@ (define module
|
|||
(lambda ()
|
||||
(match (search-path (extension-directories)
|
||||
(format #f "~a.scm" command))
|
||||
(#f
|
||||
(throw 'misc-error))
|
||||
(file
|
||||
(load file)
|
||||
(resolve-interface `(guix extensions ,command)))
|
||||
(_
|
||||
(throw 'misc-error))))
|
||||
(load file)
|
||||
(resolve-interface `(guix extensions ,command)))))
|
||||
(lambda _
|
||||
(format (current-error-port)
|
||||
(G_ "guix: ~a: command not found~%") command)
|
||||
|
|
Loading…
Reference in a new issue