envoid/internal/errors/project_is_empty.go
Sagi Dayan cd3c2b4a4b
Some checks failed
ci/ci / Check for spelling errors (pull_request) Failing after 22s
ci/ci / GonalgCI lint (pull_request) Has been skipped
ci/ci / Make sure build does not fail (pull_request) Has been skipped
ci/ci / notify-fail (pull_request) Successful in 14s
Added lint to the CI. formatted all code accordingly
Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
2024-12-16 20:22:58 +02:00

13 lines
278 B
Go

package errors
type ProjectEmptyError struct {
name string
}
func (e *ProjectEmptyError) Error() string {
return "Project " + e.name + " does not have any environments."
}
func NewProjectEmptyError(name string) *ProjectEmptyError {
return &ProjectEmptyError{name: name}
}