Files
odo/pkg/vars/errors.go
Philippe Martin 8cdc9348d7 Substituting variables into the devfile from the CLI (#5749)
* Define var and and-file flags

* vars package

* Vars for deploy

* Add integration tests for dev

* Update dev mock

* New devfile library version

* Add doc

* Fix validate

* Review

* Apply suggestions from code review

Co-authored-by: Parthvi Vala <pvala@redhat.com>

* review

Co-authored-by: Parthvi Vala <pvala@redhat.com>
2022-06-13 05:03:22 -04:00

16 lines
241 B
Go

package vars
import "fmt"
type ErrBadKey struct {
msg string
}
func NewErrBadKey(msg string) ErrBadKey {
return ErrBadKey{msg: msg}
}
func (e ErrBadKey) Error() string {
return fmt.Sprintf("poorly formatted environment: %s", e.msg)
}