From 3cae4064dca55abe91d1133c37db3a7f7ace0fa0 Mon Sep 17 00:00:00 2001 From: Karan Misra Date: Sun, 2 Mar 2014 19:39:30 +0530 Subject: [PATCH] be specific about the unsupported host --- host/descriptor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host/descriptor.go b/host/descriptor.go index 2805b09..5f89fc7 100644 --- a/host/descriptor.go +++ b/host/descriptor.go @@ -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