mirror of
				https://github.com/containers/podman.git
				synced 2025-10-31 18:08:51 +08:00 
			
		
		
		
	 6003033ada
			
		
	
	6003033ada
	
	
	
		
			
			Bump to Buildah v1.11.5. Most notably changes to the podman build `--pull` functionality. `--pull=true` and `--pull=false` now work as Docker does, `--pull-never` added to supply the functionality of the old `--pull=false`. Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
		
			
				
	
	
		
			18 lines
		
	
	
		
			431 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			431 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package oc
 | |
| 
 | |
| import (
 | |
| 	"go.opencensus.io/trace"
 | |
| )
 | |
| 
 | |
| // SetSpanStatus sets `span.SetStatus` to the proper status depending on `err`. If
 | |
| // `err` is `nil` assumes `trace.StatusCodeOk`.
 | |
| func SetSpanStatus(span *trace.Span, err error) {
 | |
| 	status := trace.Status{}
 | |
| 	if err != nil {
 | |
| 		// TODO: JTERRY75 - Handle errors in a non-generic way
 | |
| 		status.Code = trace.StatusCodeUnknown
 | |
| 		status.Message = err.Error()
 | |
| 	}
 | |
| 	span.SetStatus(status)
 | |
| }
 |