[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: ui: Ignore 'raise-exception' frames when reporting exceptions.
From: |
guix-commits |
Subject: |
02/06: ui: Ignore 'raise-exception' frames when reporting exceptions. |
Date: |
Fri, 17 Jan 2020 11:33:34 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit abbb98714b455f36373c17f00c82db9d1c41d5db
Author: Ludovic Courtès <address@hidden>
AuthorDate: Fri Jan 17 17:11:34 2020 +0100
ui: Ignore 'raise-exception' frames when reporting exceptions.
* guix/ui.scm (last-frame-with-source): Check whether FRAME corresponds
to 'raise-exception' and skip it if it does.
---
guix/ui.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/guix/ui.scm b/guix/ui.scm
index 01aeee4..4857a88 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -175,7 +175,11 @@ information, or #f if it could not be found."
(previous frame))
(if (not frame)
previous
- (if (frame-source frame)
+
+ ;; On Guile 3, the latest frame with source may be that of
+ ;; 'raise-exception' in boot-9.scm. Skip it.
+ (if (and (frame-source frame)
+ (not (eq? 'raise-exception (frame-procedure-name frame))))
frame
(loop (frame-previous frame) frame)))))
- branch master updated (05f8a14 -> 50299ad), guix-commits, 2020/01/17
- 02/06: ui: Ignore 'raise-exception' frames when reporting exceptions.,
guix-commits <=
- 01/06: git-authenticate: Adjust atheia's key info., guix-commits, 2020/01/17
- 03/06: guix system: Add workaround in test for Guile 3.0.0., guix-commits, 2020/01/17
- 05/06: guix-install.sh: Create an init profile during installation, guix-commits, 2020/01/17
- 06/06: doc: Add booting instructions for Libreboot., guix-commits, 2020/01/17
- 04/06: build: Allow builds with Guile 3.0., guix-commits, 2020/01/17