commit | 9cd8c84b795daf7d0b30733d38bea2d8191516af | [log] [tgz] |
---|---|---|
author | Kyle Kelley <rgbkrk@gmail.com> | Thu Sep 17 11:53:28 2015 -0500 |
committer | Kyle Kelley <rgbkrk@gmail.com> | Thu Sep 17 11:53:28 2015 -0500 |
tree | f63f1e079256940569ac1fb123b6af94ff6ae026 | |
parent | e93b53f61ae731004fbafed266ea59718a00bf6c [diff] |
Return error when node not found.
diff --git a/rackspace/lb/v1/nodes/requests.go b/rackspace/lb/v1/nodes/requests.go index e635d3a..945a6aa 100644 --- a/rackspace/lb/v1/nodes/requests.go +++ b/rackspace/lb/v1/nodes/requests.go
@@ -279,6 +279,9 @@ }) // TODO: When found is nil, return an error + if found == nil { + return nil, errors.New("Unable to get node by IP and Port") + } return found, nil }