[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/06: git: Add an exception printer for 'git-error'.
From: |
guix-commits |
Subject: |
04/06: git: Add an exception printer for 'git-error'. |
Date: |
Mon, 11 Feb 2019 17:26:17 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 1d8b10d00f0c242bc5ce9540737af3d3f24a05c0
Author: Ludovic Courtès <address@hidden>
Date: Mon Feb 11 22:51:08 2019 +0100
git: Add an exception printer for 'git-error'.
* guix/git.scm (print-git-error): New procedure.
<top level>: Call 'set-exception-printer!'.
---
guix/git.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/guix/git.scm b/guix/git.scm
index 0e3ce37..289537d 100644
--- a/guix/git.scm
+++ b/guix/git.scm
@@ -300,6 +300,14 @@ Log progress and checkout info to LOG-PORT."
#:select? (negate dot-git?))
commit)))
+(define (print-git-error port key args default-printer)
+ (match args
+ (((? git-error? error) . _)
+ (format port (G_ "Git error: ~a~%")
+ (git-error-message error)))))
+
+(set-exception-printer! 'git-error print-git-error)
+
;;;
;;; Checkouts.
- branch master updated (8d11b6d -> 2637cfd), guix-commits, 2019/02/11
- 04/06: git: Add an exception printer for 'git-error'.,
guix-commits <=
- 05/06: pack, vm: Fix incorrect use of 'package-transitive-propagated-inputs'., guix-commits, 2019/02/11
- 01/06: HACKING: Update key server., guix-commits, 2019/02/11
- 03/06: ui: Always print the exception upon load errors., guix-commits, 2019/02/11
- 02/06: status: Erase the current line upon new builds or downloads., guix-commits, 2019/02/11
- 06/06: Avoid name clash with 'build' from (guix store) and (guix status)., guix-commits, 2019/02/11