...

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

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

     1  package vars
     2  
     3  import "fmt"
     4  
     5  type ErrBadKey struct {
     6  	msg string
     7  }
     8  
     9  func NewErrBadKey(msg string) ErrBadKey {
    10  	return ErrBadKey{msg: msg}
    11  }
    12  
    13  func (e ErrBadKey) Error() string {
    14  	return fmt.Sprintf("poorly formatted environment: %s", e.msg)
    15  }
    16  

View as plain text