13 lines
278 B
Go
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}
|
|
}
|