FIXED:
* `envs/funcs.go:78:3: unknown field IgnoreWhiteSpace in struct literal of type EnvErrNoVal, but does have IgnoreWhitespace`
* `envs/funcs_enverrnoval.go:15:8: sb.WasFound undefined (type *strings.Builder has no field or method WasFound)`
This commit is contained in:
brent saner
2025-08-13 14:54:49 -04:00
parent 8260e4fa93
commit e797a14911
16 changed files with 790 additions and 28 deletions

View File

@@ -12,13 +12,13 @@ func (e *EnvErrNoVal) Error() (errStr string) {
sb.WriteString("the variable '")
sb.WriteString(e.VarName)
sb.WriteString("' was ")
if sb.WasFound {
if e.WasFound {
sb.WriteString("found")
} else {
sb.WriteString("not found")
}
if e.WasRequiredNonEmpty && e.WasFound {
sb.WriteString(" but is empty and was required to be non-empty")
sb.WriteString(" but is empty and was required to be non-empty")
}
errStr = sb.String()