Sagi Dayan
d5d1eecb89
Some checks failed
Codespell / Check for spelling errors (push) Failing after 1m26s
Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
15 lines
290 B
Go
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}
|
|
}
|