...

Source file src/github.com/redhat-developer/odo/pkg/podman/errors.go

Documentation: github.com/redhat-developer/odo/pkg/podman

     1  package podman
     2  
     3  import (
     4  	"fmt"
     5  )
     6  
     7  type PodmanNotFoundError struct {
     8  	err error
     9  }
    10  
    11  func NewPodmanNotFoundError(err error) PodmanNotFoundError {
    12  	return PodmanNotFoundError{err: err}
    13  }
    14  
    15  func (o PodmanNotFoundError) Error() string {
    16  	msg := "unable to access podman. Do you have podman client installed and configured correctly?"
    17  	if o.err == nil {
    18  		return msg
    19  	}
    20  	return fmt.Errorf("%s cause: %w", msg, o.err).Error()
    21  }
    22  

View as plain text