Added more tests

This commit is contained in:
Eduard Urbach 2024-06-21 10:17:26 +02:00
parent e6ae755e60
commit 5cedb516c5
Signed by: eduard
GPG key ID: 49226B848C78F6C8
4 changed files with 29 additions and 3 deletions

View file

@ -0,0 +1,13 @@
package errors
import "fmt"
// VariableAlreadyExists is used when existing variables are used for new variable declarations.
type VariableAlreadyExists struct {
Name string
}
// Error generates the string representation.
func (err *VariableAlreadyExists) Error() string {
return fmt.Sprintf("Variable '%s' already exists", err.Name)
}