16 lines
325 B
Go
16 lines
325 B
Go
|
package errors
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
type ProjectNotFoundError struct {
|
||
|
path string
|
||
|
}
|
||
|
|
||
|
func (e *ProjectNotFoundError) Error() string {
|
||
|
return fmt.Sprintf("No project found for path '%s'. Did you initialize?", e.path)
|
||
|
}
|
||
|
|
||
|
func NewProjectNotFoundError(path string) *ProjectNotFoundError {
|
||
|
return &ProjectNotFoundError{path: path}
|
||
|
}
|