Change errors to use xerrors package.

This commit is contained in:
2025-05-12 20:37:58 +03:00
parent a6dfc25e25
commit 94429b2224
7 changed files with 39 additions and 165 deletions

View File

@@ -1,14 +0,0 @@
package config
import "fmt"
// ValidationError represents a config validation error
type ValidationError struct {
Param string
Value string
Reason string
}
func (e ValidationError) Error() string {
return fmt.Sprintf("invalid value '%s' for %s: %s", e.Value, e.Param, e.Reason)
}