13 lines
262 B
Go
13 lines
262 B
Go
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}
|
|
}
|