Add a rudimentary error message when no device found

This commit is contained in:
Jesse Peterson
2017-03-18 17:58:00 -07:00
parent 2764b4a481
commit 399f9c5354

2
get.go
View File

@@ -104,6 +104,8 @@ func getDepDevice(client dep.Client, args []string) error {
enc.SetIndent("", " ")
err = enc.Encode(dev)
return err
} else {
return errors.New("no device information")
}
return nil
}