Sagi Dayan
2ca1e7826a
Some checks failed
Codespell / Check for spelling errors (push) Failing after 1m35s
Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
16 lines
395 B
Go
16 lines
395 B
Go
package errors
|
|
|
|
import "fmt"
|
|
|
|
type EnvironmentNotFoundError struct {
|
|
path string
|
|
name string
|
|
}
|
|
|
|
func (e *EnvironmentNotFoundError) Error() string {
|
|
return fmt.Sprintf("No env '%s' definition for path %s. Did you initialize?", e.name, e.path)
|
|
}
|
|
|
|
func NewEnvironmentNotFoundError(path string, name string) *EnvironmentNotFoundError {
|
|
return &EnvironmentNotFoundError{path: path, name: name}
|
|
}
|