mirror of
https://github.com/kidoman/embd
synced 2024-12-22 04:40:04 +01:00
be specific about the unsupported host
This commit is contained in:
parent
1ebbe540a5
commit
3cae4064dc
@ -1,6 +1,6 @@
|
||||
package host
|
||||
|
||||
import "errors"
|
||||
import "fmt"
|
||||
|
||||
type Descriptor struct {
|
||||
GPIO func() interface{}
|
||||
@ -19,7 +19,7 @@ func Describe() (*Descriptor, error) {
|
||||
|
||||
describer, ok := Describers[host]
|
||||
if !ok {
|
||||
return nil, errors.New("host: invalid host")
|
||||
return nil, fmt.Errorf("host: invalid host %q", host)
|
||||
}
|
||||
|
||||
return describer(rev), nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user