envoid/internal/errors/env_not_found.go
Sagi Dayan 33f99dd65b
All checks were successful
build bin / Make sure build does not fail (push) Successful in 2m51s
Codespell / Check for spelling errors (push) Successful in 22s
Initial commit
Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
2024-12-15 17:41:31 +02:00

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}
}