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
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -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))))) | ||||
| 
 | ||||
|  |  | |||
		Reference in a new issue