Improved variable definitions
This commit is contained in:
@ -11,8 +11,8 @@ type UnknownIdentifier struct {
|
||||
// Error generates the string representation.
|
||||
func (err *UnknownIdentifier) Error() string {
|
||||
if err.CorrectName != "" {
|
||||
return fmt.Sprintf("Unknown variable '%s', did you mean '%s'?", err.Name, err.CorrectName)
|
||||
return fmt.Sprintf("Unknown identifier '%s', did you mean '%s'?", err.Name, err.CorrectName)
|
||||
}
|
||||
|
||||
return fmt.Sprintf("Unknown variable '%s'", err.Name)
|
||||
return fmt.Sprintf("Unknown identifier '%s'", err.Name)
|
||||
}
|
||||
|
Reference in New Issue
Block a user