Sagi Dayan
d5d1eecb89
Some checks failed
Codespell / Check for spelling errors (push) Failing after 1m26s
Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
15 lines
301 B
Go
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}
|
|
}
|