envoid/internal/errors/project_not_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
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}
}