envoid/internal/errors/project_is_empty.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
301 B
Go

package errors
import "fmt"
type ProjectEmptyError struct {
name string
}
func (e *ProjectEmptyError) Error() string {
return fmt.Sprintf("Project %s does not have any environments.", e.name)
}
func NewProjectEmptyError(name string) *ProjectEmptyError {
return &ProjectEmptyError{name: name}
}