Sagi Dayan
693350fa49
All checks were successful
Codespell / Check for spelling errors (push) Successful in 23s
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}
|
|
}
|