2024-11-22 15:29:25 +00:00
|
|
|
package errors
|
|
|
|
|
|
|
|
type ProjectEmptyError struct {
|
|
|
|
name string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e *ProjectEmptyError) Error() string {
|
2024-12-16 18:22:58 +00:00
|
|
|
return "Project " + e.name + " does not have any environments."
|
2024-11-22 15:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func NewProjectEmptyError(name string) *ProjectEmptyError {
|
|
|
|
return &ProjectEmptyError{name: name}
|
|
|
|
}
|