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.
This commit is contained in:
parent
b2504b1205
commit
abbb98714b
@ -175,7 +175,11 @@ information, or #f if it could not be found."
|
|||||||
(previous frame))
|
(previous frame))
|
||||||
(if (not frame)
|
(if (not frame)
|
||||||
previous
|
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
|
frame
|
||||||
(loop (frame-previous frame) frame)))))
|
(loop (frame-previous frame) frame)))))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user