envoid/internal/errors/env_already_exists.go
Sagi Dayan db43052f9d
Some checks failed
CI / check for spelling errors (pull_request) Successful in 23s
CI / code quality (lint/tests) (pull_request) Failing after 20s
CI / make sure build does not fail (pull_request) Has been skipped
CI / notify-fail (pull_request) Successful in 14s
Added lint to the CI. formatted all code accordingly
Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
2024-12-17 12:48:29 +02:00

13 lines
290 B
Go

package errors
type EnvironmentExistsError struct {
name string
}
func (e *EnvironmentExistsError) Error() string {
return "environment " + e.name + " already exists"
}
func NewEnvironmentExistsError(name string) *EnvironmentExistsError {
return &EnvironmentExistsError{name: name}
}