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}
|
|
}
|