mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 10:47:27 +08:00 
			
		
		
		
	pkg/terminal: Use new starlark CallFrame API
This commit is contained in:
		 Derek Parker
					Derek Parker
				
			
				
					committed by
					
						 Alessandro Arzilli
						Alessandro Arzilli
					
				
			
			
				
	
			
			
			 Alessandro Arzilli
						Alessandro Arzilli
					
				
			
						parent
						
							bb7f3f2f92
						
					
				
				
					commit
					86ed5b66a1
				
			| @ -289,7 +289,7 @@ func decorateError(thread *starlark.Thread, err error) error { | |||||||
| 	if err == nil { | 	if err == nil { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| 	pos := thread.Caller().Position() | 	pos := thread.CallFrame(1).Pos | ||||||
| 	if pos.Col > 0 { | 	if pos.Col > 0 { | ||||||
| 		return fmt.Errorf("%s:%d:%d: %v", pos.Filename(), pos.Line, pos.Col, err) | 		return fmt.Errorf("%s:%d:%d: %v", pos.Filename(), pos.Line, pos.Col, err) | ||||||
| 	} | 	} | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user