Fixed incorrect OS detection
This commit is contained in:
parent
2ae8b04593
commit
7fb5c8407f
8 changed files with 65 additions and 25 deletions
14
src/errors/InvalidParameterValue.go
Normal file
14
src/errors/InvalidParameterValue.go
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue