envoid/internal/errors/no_config_found.go

14 lines
262 B
Go
Raw Normal View History

package errors
type NoConfigFoundError struct {
path string
}
func (e *NoConfigFoundError) Error() string {
return "no config file found in " + e.path
}
func NewNoConfigFoundError(path string) *NoConfigFoundError {
return &NoConfigFoundError{path: path}
}