envoid/internal/errors/no_config_found.go
Sagi Dayan d72005afe1
All checks were successful
Codespell / Check for spelling errors (push) Successful in 23s
Initial commit
Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
2024-12-14 23:44:48 +02:00

15 lines
290 B
Go

package errors
import "fmt"
type NoConfigFoundError struct {
path string
}
func (e *NoConfigFoundError) Error() string {
return fmt.Sprintf("no config file found in %s", e.path)
}
func NewNoConfigFoundError(path string) *NoConfigFoundError {
return &NoConfigFoundError{path: path}
}