12 lines
258 B
Go
12 lines
258 B
Go
|
package errors
|
||
|
|
||
|
type NoEnvProvidedError struct{}
|
||
|
|
||
|
func (e *NoEnvProvidedError) Error() string {
|
||
|
return "You have more than 1 environment. please provide environment name"
|
||
|
}
|
||
|
|
||
|
func NewNoEnvProvidedError() *NoEnvProvidedError {
|
||
|
return &NoEnvProvidedError{}
|
||
|
}
|