be specific about the unsupported host

This commit is contained in:
Karan Misra 2014-03-02 19:39:30 +05:30
parent 1ebbe540a5
commit 3cae4064dc
1 changed files with 2 additions and 2 deletions

View File

@ -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