Fixed incorrect OS detection

This commit is contained in:
Eduard Urbach 2025-01-31 21:50:35 +01:00
parent 6163ba547e
commit 8de582abf6
No known key found for this signature in database
GPG key ID: C874F672B1AF20C0
8 changed files with 65 additions and 25 deletions

View file

@ -0,0 +1,14 @@
package errors
import "fmt"
// InvalidParameterValue error is created when a parameter has an invalid value.
type InvalidParameterValue struct {
Value string
Parameter string
}
// Error generates the string representation.
func (err *InvalidParameterValue) Error() string {
return fmt.Sprintf("Invalid value '%s' for parameter '%s'", err.Value, err.Parameter)
}