[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/12: describe: Provide a hint when origin detection fails.
From: |
guix-commits |
Subject: |
01/12: describe: Provide a hint when origin detection fails. |
Date: |
Sun, 28 Apr 2019 16:57:15 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 0663302618d6bef25bf09f694a91ab05fe7a9bd7
Author: Ludovic Courtès <address@hidden>
Date: Sun Apr 28 15:05:41 2019 +0200
describe: Provide a hint when origin detection fails.
* guix/scripts/describe.scm (display-checkout-info): Add call to
'display-hint' in the error case.
---
guix/scripts/describe.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/guix/scripts/describe.scm b/guix/scripts/describe.scm
index b6287d3..fa6b6ca 100644
--- a/guix/scripts/describe.scm
+++ b/guix/scripts/describe.scm
@@ -18,6 +18,7 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (guix scripts describe)
+ #:use-module ((guix config) #:select (%guix-version))
#:use-module ((guix ui) #:hide (display-profile-content))
#:use-module (guix channels)
#:use-module (guix scripts)
@@ -114,7 +115,12 @@ within a Git checkout."
(lambda ()
(repository-discover (dirname program)))
(lambda (key err)
- (leave (G_ "failed to determine origin~%")))))
+ (report-error (G_ "failed to determine origin~%"))
+ (display-hint (format #f (G_ "Perhaps this
address@hidden command was not obtained with @command{guix pull}? Its version
+string is ~a.~%")
+ %guix-version))
+ (exit 1))))
(repository (repository-open directory))
(head (repository-head repository))
(commit (oid->string (reference-target head))))
- 12/12: installer: Tell the user where the config file is., (continued)
- 12/12: installer: Tell the user where the config file is., guix-commits, 2019/04/28
- 10/12: installer: User accounts can now have a "real name.", guix-commits, 2019/04/28
- 11/12: installer: Fix handling of user password mismatches., guix-commits, 2019/04/28
- 09/12: installer: User can have a "real name"., guix-commits, 2019/04/28
- 07/12: installer: Add 'nss-certs' to the networking services., guix-commits, 2019/04/28
- 08/12: installer: Improve layout of the partitioning page., guix-commits, 2019/04/28
- 06/12: installer: Recommended services are pre-selected., guix-commits, 2019/04/28
- 03/12: Update NEWS., guix-commits, 2019/04/28
- 05/12: installer: Add #:selection parameter to 'run-checkbox-tree-page'., guix-commits, 2019/04/28
- 04/12: doc: Duplicate recommendation about 'guix-install.sh'., guix-commits, 2019/04/28
- 01/12: describe: Provide a hint when origin detection fails.,
guix-commits <=
- 02/12: vm-image: Add 'nss-certs' to the global package set., guix-commits, 2019/04/28